# cupy.linalg.eigvalsh¶

cupy.linalg.eigvalsh(a, UPLO='L')[source]

Calculates eigenvalues of a symmetric matrix.

This method calculates eigenvalues a given symmetric matrix. Note that cupy.linalg.eigh() calculates both eigenvalues and eigenvectors.

Note

Currenlty only 2-D matrix is supported.

Note

CUDA >=8.0 is required.

Parameters: a (cupy.ndarray) – A symmetric 2-D square matrix. UPLO (str) – Select from 'L' or 'U'. It specifies which part of a is used. 'L' uses the lower triangular part of a, and 'U' uses the upper triangular part of a. Returns eigenvalues as a vector. cupy.ndarray