Matrices¶
Predicates¶
|
Checks if an array is a matrix |
|
Checks if an array is a square matrix |
|
Checks if an array is a symmetric matrix |
|
Checks if an array is a Hermitian matrix |
Checks if an array is a symmetric positive definite matrix |
|
|
Checks if a matrix has orthogonal columns |
|
Checks if a matrix has orthogonal rows |
Checks if a matrix has unitary columns |
|
Checks if a matrix has unitary rows |
Matrix Multiplication¶
|
Returns \(A^H v\) for a given matrix A and a vector v |
Returns the transpose of an array of matrices |
|
Returns the conjugate transpose of an array of matrices |
|
|
Compute D @ A where D is a diagonal matrix with entries from vector d |
|
Compute A @ D where D is a diagonal matrix with entries from vector d |
Matrix Parts¶
Returns the off diagonal elements of a matrix A |
|
Returns the minimum of the off diagonal elements |
|
Returns the maximum of the off diagonal elements |
|
Returns the maximum of the off diagonal elements |
|
|
Extracts the block diagonal from the given matrix |
|
Splits the columns of a matrix into blocks and returns a 3D array |
Matrix Operations¶
|
Sets the diagonal elements to a specific value |
|
Add a specific value to the diagonal elements |
Row wise and column wise norms¶
|
Computes the l_1 norm of each column of a matrix |
|
Computes the l_1 norm of each row of a matrix |
|
Computes the l_2 norm of each column of a matrix |
|
Computes the l_2 norm of each row of a matrix |
Computes the l_inf norm of each column of a matrix |
|
Computes the l_inf norm of each row of a matrix |
|
Computes the squared l_2 norm of each column of a matrix |
|
Computes the l_2 norm of each row of a matrix |
|
Normalize each column of X per l_1-norm |
|
Normalize each row of X per l_1-norm |
|
Normalize each column of X per l_2-norm |
|
Normalize each row of X per l_2-norm |
Pairwise Distances¶
Computes the pairwise squared distances between points in A and points in B where each point is a row vector |
|
Computes the pairwise squared distances between points in A and points in B where each point is a column vector |
|
|
Computes the pairwise distances between points in A and points in B where each point is a row vector |
|
Computes the pairwise distances between points in A and points in B where each point is a column vector |
Computes the pairwise squared distances between points in A where each point is a row vector |
|
Computes the pairwise squared distances between points in A where each point is a column vector |
|
|
Computes the pairwise distances between points in A where ach point is a row vector |
|
Computes the pairwise distances between points in A where each point is a column vector |
|
Computes the pairwise city-block distances between points in A and points in B where each point is a row vector |
|
Computes the pairwise city-block distances between points in A and points in B where each point is a column vector |
|
Computes the pairwise city-block distances between points in A where each point is a row vector |
|
Computes the pairwise city-block distances between points in A where each point is a column vector |
Computes the pairwise Chebyshev distances between points in A and points in B where each point is a row vector |
|
Computes the pairwise Chebyshev distances between points in A and points in B where each point is a column vector |
|
Computes the pairwise Chebyshev distances between points in A where each point is a row vector |
|
Computes the pairwise Chebyshev distances between points in A where each point is a column vector |