MatrixWeighting.matrix_decomp¶
-
MatrixWeighting.
matrix_decomp
(self, cache=None)[source]¶ Compute a Hermitian eigenbasis decomposition of the matrix.
- Parameters
- cachebool or None, optional
If
True
, store the decomposition internally. For None, thecache_mat_decomp
from class initialization is used.
- Returns
- eigval
numpy.ndarray
One-dimensional array of eigenvalues. Its length is equal to the number of matrix rows.
- eigvec
numpy.ndarray
Two-dimensional array of eigenvectors. It has the same shape as the decomposed matrix.
- eigval
- Raises
- NotImplementedError
if the matrix is sparse (not supported by scipy 0.17)
See also
scipy.linalg.decomp.eigh
Implementation of the decomposition. Standard parameters are used here.