numpy¶
Array manipulation¶
- copyto
Changing array shape¶
- reshape
- ravel
- ndarray.flatten
Transpose-like operations¶
- swapaxes
- ndarray.T
- transpose
Joining arrays¶
- concatenate
- stack
- column_stack
- block
Splitting arrays¶
- split
- array_split
Tiling arrays¶
- tile
- repeat
Adding and removing elements¶
- delete
- insert
- append
- resize
- trim_zeros
- unique
Rearranging elements¶
- flip
- fliplr
- flipud
- reshape
- roll
- rot90
The N-dimensional array¶
TODO
Array creation routines¶
Ones and zeros¶
- empty
- empty_like
- eye
- identity
- ones
- ones_like
- zeros
- zeros_like
From existing data¶
- array
- asarray
- asanyarray
- ascontiguousarray
- asmatrix
- copy
- fromfile
- fromfunction
- loadtxt
Numerical ranges¶
- arange
- linspace
- logspace
- meshgrid
Building matrices¶
- diag
- diagflat
- tri
- tril
- triu
Linear algebra (numpy.linalg)¶
Matrix and vector products¶
- dot
- vdot
- inner
- outer
- matmul
- tensordot
- linalg.matrix_power
- kron
Decompositions¶
- linalg.cholesky
- linalg.qr
- linalg.svd
Matrix eigenvalues¶
- linalg.eig
- linalg.eigh
- linalg.eigvals
- linalg.eigvalsh
Norms and other numbers¶
- linalg.norm
- linalg.cond
- linalg.det
- linalg.matrix_rank
- trace
Solving equations and inverting matrices¶
- linalg.solve
- linalg.tensorsolve
- linalg.lstsq
- linalg.inv
- linalg.pinv
- linalg.tensorinv
Mathematical functions¶
Trigonometric functions¶
- sin
- cos
- tan
- arcsin
- arccos
- arctan
- hypot
- arctan2
- degrees
- radians
- unwrap
- deg2rad
- rad2deg
Hyperbolic functions¶
- sinh
- cosh
- tanh
- arcsinh
- arccosh
- arctanh
Rounding¶
- around
- round
- floor
- ceil
Sums, products, differences¶
- prod
- sum
- cumprod
- cumsum
- diff
- ediff1d
- gradient
- cross
Exponents and logarithms¶
- exp
- log
Other special functions¶
- i0
- sinc
Arithmetic operations¶
- add
- multiply
- divide
- power
- subtract
- true_divide
- floor_divide
- float_power
- fmod
- mod
- remainder
- divmod
Handling complex numbers¶
- angle
- real
- imag
- conj
Miscellaneous¶
- convolve
- sqrt
- square
- absolute
- fabs
- sign
- maximum
- minimum
- fmax
- fmin
- interp