-
Universal operations: operations that are applied to all elements.
-
These operations include arithmetic operations, comparisons (=, <, >), sin/cos, and more.
-
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]])