Numpy - dylanmoz/notes GitHub Wiki
Numpy
Global Methods
- Methods with the same format:
ones
, empty
.
eye(N): np.ndarray
- Creates an identity matrix of size NxN
np.sqrt
, np.exp
, np.sin
, np.log
- All take an np.ndarray
and perform the corresponding operation on all values
np.random Methods
np.ndarray Methods
copy(): np.ndarray
Create a new reference to the matrix
max
, min
, argmax
, argmin
- Self explanatory, arg___
methods return the index at which the match exists
np.ndarray Properties
shape, dtype