pub fn eig<T: LinalgScalar>(
a: &[T],
batch: usize,
n: usize,
left: bool,
right: bool,
) -> (Vec<Cx<T>>, Vec<Cx<T>>, Vec<Cx<T>>)Expand description
The eigendecomposition of each n x n matrix of a batch (LAPACK’s
geev; see the module’s description): the complex eigenvalues (n per
matrix), and, if requested, the left eigenvectors (u^H a = w u^H) and
the right eigenvectors (a v = w v), one per column of n x n complex
matrices (empty if not requested).
§Panics
Panics if a does not have batch * n * n elements.