Linear Algebra¶
Linear Systems¶
Triangular Systems
|
Solves the system L x = b using back substitution |
|
Solves the system L^T x = b using back substitution |
|
Solves the system U x = b using back substitution |
|
Solves the system U^T x = b using back substitution |
|
Solves a symmetric positive definite system A x = b where A = L L’ |
Special Dense Linear Systems
|
Computes \(b = A[:, I] x\) |
|
Solves the problem \(A[:, I] x = b\) where I is an index set of selected columns |
Singular Value Decomposition¶
Fundamental Subspaces
|
Constructs an orthonormal basis for the range of A using SVD |
|
Constructs an orthonormal basis for the row space of A using SVD |
|
Constructs an orthonormal basis for the null space of A using SVD |
|
Constructs an orthonormal basis for the left null space of A using SVD |
|
Returns the effective rank of A based on its singular value decomposition |
|
Returns the effective rank of a matrix from its SVD |
Returns the singular values of a matrix |
SVD for Bidiagonal Matrices
|
Computes the SVD of the bidiagonal matrix |
|
Computes the SVD of the bidiagonal matrix |
Truncated SVD
|
Returns the k largest singular values and corresponding vectors |
|
Returns the k largest singular values and corresponding vectors |
|
Initialize the state with a starting vector |
|
One single (j-th) iteration of Lanczos bidiagonalization with partial reorthogonalization algorithm |
|
One single (j-th) iteration of Lanczos bidiagonalization with partial reorthogonalization algorithm |
|
K steps of the Lanczos bidiagonalization with partial reorthogonalization |
|
K steps of the Lanczos bidiagonalization with partial reorthogonalization |
Orthogonalization¶
Householder Reflections
Computes a Householder vector for \(x\) |
|
Computes a Householder refection matrix for \(x\) |
|
|
Pre-multiplies a Householder reflection defined by \(v, beta\) to a matrix A, PA |
|
Post-multiplies a Householder reflection defined by \(v, beta\) to a matrix A, AP |
GVL4 EQ 5.1.4 v, beta calculation |
|
Computes Q^T C where Q is stored in its factored form in A. |
|
Computes k columns of Q from the factored form representation of Q stored in A. |
|
Computes the WY representation of Q such that Q = I_m - W Y^T from the factored form representation |
|
Computes the QR = A factorization of A using Householder reflections. |
|
Splits a packed QR factorization into QF and R |
|
Computes the QR = A factorization of A using Householder reflections |
Subspaces¶
Projection
|
Projects a vector to a subspace |
|
Checks whether a vector v is in the subspace spanned by an ONB U or not |
Principal Angles
|
Returns the cosines of principal angles between two subspaces |
|
Returns the principal angles between two subspaces in radians |
|
Returns the principal angles between two subspaces in degrees |
Returns the cosine of smallest principal angle between two subspaces |
|
Returns the smallest principal angle between two subspaces in radians |
|
Returns the smallest principal angle between two subspaces in degrees |
|
|
Returns the smallest principal angles between each pair of subspaces |
|
Returns the smallest principal angles between each pair of subspaces in radians |
|
Returns the smallest principal angles between each pair of subspaces in degrees |
|
Returns the Grassmannian distance between two subspaces |
Affine Spaces¶
Homogeneous Coordinate System
|
|
|
|
|
Standard Matrices¶
Random matrices
|
A dictionary/sensing matrix where entries are drawn independently from normal distribution. |
Special Matrices
|
Returns a pascal matrix of size n imes n |
|
Returns a pascal matrix of size n imes n |
Toeplitz Matrices¶
|
Constructs a Toeplitz matrix |
|
Multiplies a Toeplitz matrix with a vector |
Circulant Matrices¶
Constructs a circulant matrix |
|
|
Multiplies a circulant matrix with a vector |