pub unsafe fn potrf2(
uplo: char,
n: usize,
a: *mut f64,
lda: usize,
) -> Result<(), String>Expand description
Computes the Cholesky factorisation of a symmetric, positive-definite matrix (unblocked version).
- If
uplo= ‘U’, then $A = U^T U$, whereUis an upper triangular matrix. - If
uplo= ‘L’, then $A = L L^T$, whereLis a lower triangular matrix.
§Arguments
uplo- A character specifying which triangular part ofAis stored and computed:- ‘U’ or ‘u’: Upper triangle of
A. - ‘L’ or ‘l’: Lower triangle of
A.
- ‘U’ or ‘u’: Upper triangle of
n- The order of the matrixA.nmust be non-negative.a- A raw mutable pointer to the first element of theN-by-NmatrixA(in column-major order). On exit, the specifieduplopart ofAis overwritten with the Cholesky factor.lda- The leading dimension of the matrixA.ldamust be at leastmax(1, n).
§Returns
Ok(())- If the factorization completed successfully.Err(String)