scipy.linalg.lapack.spptrf#

scipy.linalg.lapack.spptrf(n, ap, lower=0, overwrite_ap=0) = <flapack function spptrf>#

Compute the Cholesky factorization of a positive definite matrix in packed storage (LAPACK spptrf).

Parameters:
nint

Order of the square matrix.

apndarray

The triangle named by lower, in packed storage: the n * (n + 1) / 2 elements 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.