saiunit.linalg module#
Unit-aware linear-algebra routines.
Provides wrappers for jax.numpy.linalg functions that correctly
propagate physical units through matrix decompositions, solvers, norms,
and products.
Functions that Changing Unit#
Compute the dot product of two arrays or quantities. |
|
Efficiently compute matrix products between a sequence of arrays. |
|
Perform a conjugate multiplication of two 1D vectors. |
|
Perform a conjugate multiplication of two batched vectors. |
|
Compute the inner product of two arrays or quantities. |
|
Compute the Kronecker product of two arrays or quantities. |
|
Compute the matrix product of two arrays or quantities. |
|
Compute tensor dot product along specified axes. |
|
Raise a square matrix to the (integer) power n. |
|
Return the cross product of two (arrays of) vectors. |
|
Compute the Cholesky decomposition of a matrix. |
|
Compute the outer product of two vectors or quantities. |
|
Compute the determinant of a matrix. |
|
Solve a linear system of equations. |
|
Solve the tensor equation |
|
Return the least-squares solution to a linear equation. |
|
Return the inverse of a square matrix. |
|
Compute the Moore-Penrose pseudo-inverse of a matrix. |
|
Compute the tensor inverse of an array. |
Functions that Keeping Unit#
Compute the QR decomposition of a matrix. |
|
Singular value decomposition. |
|
Compute the singular values of a matrix. |
|
Compute the eigenvalues and eigenvectors of a square matrix. |
|
Compute eigenvalues and eigenvectors of a Hermitian matrix. |
|
Compute the eigenvalues of a general matrix. |
|
Compute the eigenvalues of a Hermitian matrix. |
|
Compute the norm of a matrix or vector. |
|
Compute the norm of a matrix or stack of matrices. |
|
Compute the vector norm of a vector or batch of vectors. |
|
Return the sum along diagonals of the array. |
|
Return specified diagonals. |
|
Transpose a matrix or stack of matrices. |
Functions that Removing Unit#
Compute the condition number of a matrix. |
|
Compute the rank of a matrix. |
|
Compute the sign and (natural) logarithm of the absolute determinant. |