chainerx.linalg.eigh¶
- chainerx.linalg.eigh(a, UPLO='L')¶
Compute the eigenvalues and eigenvectors of a real symmetric matrix.
- Parameters
- Returns
Returns a tuple
(w, v).wcontains eigenvalues andvcontains eigenvectors.v[:, i]is an eigenvector corresponding to an eigenvaluew[i].- Return type
tuple of
ndarray
Note
Although
UPLOcan be specified to ignore either the strictly lower or upper part of the input matrix, the backward computation assumes that the inputs is symmetric and the computed gradient is always a symmetric matrix with respect toUPLO. More specifically, the gradient is computed as if the function is restricted to a Riemannian submanifold of \(R^{n \times n}\) consisting just of symmetric matrices and is faithful to the mathematical definition of the eigenvalue decomposition of symmetric matrices.Note
The
dtypemust befloat32orfloat64(float16is not supported yet.)See also