• Universal operations: operations that are applied to all elements. image

  • These operations include arithmetic operations, comparisons (=, <, >), sin/cos, and more.

  • image

  • np._ix()

    • Useful when selecting indices for each dimension.

Python code:

# The following two are equivalent.
print(a[np.ix_([0, 2], [1, 3])])
print(a[[[0], [2]], [1, 3]])

#gci2020