bundles / scipy latest / scipy / linalg / _flapack / spotrf
lapack_function
scipy.linalg._flapack:spotrf
source: build-install/usr/lib/python3.14/site-packages/scipy/linalg/_flapack.cpython-314-x86_64-linux-gnu.so
Signature
def spotrf(a, lower = 0, clean = 1, overwrite_a = 0)Summary
Compute the Cholesky factorization of a positive definite matrix (LAPACK spotrf).
Parameters
a: ndarraySymmetric or Hermitian positive definite matrix of shape
(n, n).lower: int, optionalIf nonzero, the lower triangle of
ais referenced and the factor is lower triangular; otherwise the upper. Default is 0.clean: int, optionalIf nonzero, the triangle LAPACK does not write is zeroed, so c is genuinely triangular. If 0, that triangle still holds whatever
ahad there. Default is 1.overwrite_a: int, optionalIf nonzero, a may be overwritten in place. Default is 0.
Returns
c: ndarrayCholesky factor:
c.conj().T @ c == afor the upper triangle,c @ c.conj().T == afor the lower.info: int0 on success; if negative, the
-info-th argument had an illegal value; if positive, the leading minor of order info is not positive definite.
Aliases
scipy.linalg._flapack.spotrf