scipy.linalg.lapack.cpptrf#
- scipy.linalg.lapack.cpptrf(n, ap, lower=0, overwrite_ap=0) = <flapack function cpptrf>#
Compute the Cholesky factorization of a positive definite matrix in packed storage (LAPACK
cpptrf).- Parameters:
- nint
Order of the square matrix.
- apndarray
The triangle named by lower, in packed storage: the
n * (n + 1) / 2elements of one triangle, column by column. A longer array is accepted and its tail ignored.- lowerint, optional
If nonzero, the lower triangle of a is referenced and the factor is lower triangular; otherwise the upper. Default is 0.
- overwrite_apint, optional
If nonzero, ap may be overwritten in place. Default is 0.
- Returns:
- ulndarray
The Cholesky factor in packed storage, overwriting ap.
- infoint
0 on success; if negative, the
-info-th argument had an illegal value.