eig_ndarray

Function eig_ndarray 

Source
pub fn eig_ndarray<T>(a: &Array2<T>) -> LapackResult<GeneralEvdResult<T>>
where T: Field + Clone + Zeroable + Real,
Expand description

Computes eigenvalues of a general (non-symmetric) matrix.

For a real matrix, eigenvalues may be complex. They are returned as real/imaginary pairs. Eigenvectors are also split into real and imaginary parts.

§Arguments

  • a - The input square matrix (n×n)

§Returns

Eigenvalues and eigenvectors (split into real/imaginary parts)