dpnp.linalg.eigvals
- dpnp.linalg.eigvals(input)[source]
Compute the eigenvalues of a general matrix. Main difference between eigvals and eig: the eigenvectors aren’t returned.
- Parameters
input ((..., M, M) array_like) – A complex- or real-valued matrix whose eigenvalues will be computed.
- Returns
w – The eigenvalues, each repeated according to its multiplicity. They are not necessarily ordered, nor are they necessarily real for real matrices.
- Return type
(…, M,) ndarray