pub fn cholesky<T: LinalgScalar>(a: &[T], batch: usize, n: usize) -> Vec<T>Expand description
The Cholesky factorization A = L L^H of each n x n matrix of a batch
of batch matrices, reading the lower triangle (LAPACK’s potrf with
uplo = 'L'; only the real part of the diagonal is read).
The result has L in the lower triangle and the strictly upper triangle
of the input. A matrix that is not positive definite (or has NaNs) gives
NaNs everywhere.
§Panics
Panics if a does not have batch * n * n elements.