bundles / scipy 2.0.0.dev0+git20260907.41eeb59 / scipy / linalg / _flapack / dpstrf
lapack_function
scipy.linalg._flapack:dpstrf
source: build-install/usr/lib/python3.14/site-packages/scipy/linalg/_flapack.cpython-314-x86_64-linux-gnu.so
Signature
def dpstrf(a, tol = -1.0, lower = 0, overwrite_a = 0)Summary
Compute the pivoted Cholesky factorization of a positive semidefinite matrix, blocked (LAPACK dpstrf).
Parameters
a: ndarraySymmetric or Hermitian positive semidefinite matrix of shape
(n, n).tol: float, optionalPivots at or below this value stop the factorization. Default is -1.0, which uses
n * eps * max(diag(a)).lower: int, optionalIf nonzero, the lower triangle of
ais referenced and the factor is lower triangular; otherwise the upper. Default is 0.overwrite_a: int, optionalIf nonzero, a may be overwritten in place. Default is 0.
Returns
c: ndarrayThe factor, in the selected triangle, of
p.T @ a @ p. The opposite triangle is left as it was ina.piv: ndarrayPivot indices, 1-based: column
iofpis columnpiv[i] - 1of the identity. Unlikegetrf, this family does not shift them down.rank_c: intComputed rank of
a, as determined bytol.info: int0 on success; if negative, the
-info-th argument had an illegal value; if 1,ais not positive definite but the rank-deficient factorization completed.
Aliases
scipy.linalg._flapack.dpstrf