Matrix Ops
This section contains various matrix decomposition routines.
SVD
Description
Singular Value Decomposition (SVD) performs a decomposition such that:
Performs a thin decomposition. Only the n column vectors of U corresponding to the row vectors of V* are calculated.
Returns
- Matrix : Orthogonal matrix
- Matrix : Ranked singular values
- Matrix : Orthogonal matrix
QR
Description
Performs a decomposition such that: where is an orthogonal matrix and is an upper triangular matrix.
Returns
- Matrix Q: Orthogonal matrix
- Matrix R: Upper triangular matrix
PCA
Description
Suppose we have a data matrix . In Principal Component Analysis, we maximize the following relation:
subject to the constraint where is a matrix of orthonomal vectors.
Returns
- Scores: Ranked projections
- Singular Values: Ranked eigenvalues
- W: Ranked columnwise coefficient matrix
- T2: Hotelling’s T-Squared
- % Variance: Percent variance explained by each component
NNMF
Description
Suppose we have a matrix with no negative values and we want the following decomposition: where and have only non-negative elements, this is known as Non-Negative Matrix Factorization.
Method: Alternating Least Squares