Linear algebra
Matrix and vector products
Dot product of a and b. |
|
Compute the dot product of two or more arrays in a single function call. |
|
Return the dot product of two vectors. |
|
Computes the vector dot product. |
|
Computes the vector dot product. |
|
Returns the inner product of two arrays. |
|
Returns the outer product of two arrays. |
|
Matrix product of two arrays. |
|
Computes the matrix product. |
|
Compute tensor dot product along specified axes. |
|
Compute tensor dot product along specified axes. |
|
Evaluates the Einstein summation convention on the operands. |
|
Evaluates the lowest cost contraction order for an einsum expression by considering the creation of intermediate arrays. |
|
Raise a square matrix to the (integer) power n. |
|
Kronecker product of two arrays. |
|
Returns the cross product of 3-element vectors. |
Decompositions
Cholesky decomposition. |
|
Compute the outer product of two vectors. |
|
Compute the qr factorization of a matrix. |
|
Singular Value Decomposition. |
|
Returns the singular values of a matrix (or a stack of matrices) x. |
Matrix eigenvalues
Compute the eigenvalues and right eigenvectors of a square array. |
|
Return the eigenvalues and eigenvectors of a complex Hermitian (conjugate symmetric) or a real symmetric matrix. |
|
Compute the eigenvalues of a general matrix. |
|
Compute the eigenvalues of a complex Hermitian or real symmetric matrix. |
Norms and other numbers
Matrix or vector norm. |
|
Computes the matrix norm of a matrix (or a stack of matrices) x. |
|
Computes the vector norm of a vector (or batch of vectors) x. |
|
Compute the condition number of a matrix. |
|
Compute the determinant of an array. |
|
Return matrix rank of array using SVD method. |
|
Compute the sign and (natural) logarithm of the determinant of an array. |
|
Return the sum along diagonals of the array. |
|
Returns the sum along the specified diagonals of a matrix (or a stack of matrices) x. |
Solving linear equations
Solve a linear matrix equation, or system of linear scalar equations. |
|
Solve the tensor equation |
|
Return the least-squares solution to a linear matrix equation. |
|
Compute the (multiplicative) inverse of a matrix. |
|
Compute the (Moore-Penrose) pseudo-inverse of a matrix. |
|
Compute the 'inverse' of an N-dimensional array. |
Other matrix operations
Return specified diagonals. |
|
Returns specified diagonals of a matrix (or a stack of matrices) x. |