This is a pre-release version (latest).Go to latest (1.18.0)
{ } Raw JSON

bundles / scipy latest / scipy / linalg / _flapack / cposv

lapack_function

scipy.linalg._flapack:cposv

source: build-install/usr/lib/python3.14/site-packages/scipy/linalg/_flapack.cpython-314-x86_64-linux-gnu.so

Signature

def cposv(a, b, lower = 0, overwrite_a = 0, overwrite_b = 0)

Summary

Solve a @ x = b for a positive definite a by Cholesky factorization (LAPACK cposv).

Parameters

a : ndarray

Symmetric or Hermitian positive definite matrix of shape (n, n).

b : ndarray

Right-hand side(s) of shape (n, nrhs).

lower : int, optional

If nonzero, the lower triangle of a is referenced and the factor is lower triangular; otherwise the upper. Default is 0.

overwrite_a : int, optional

If nonzero, a may be overwritten in place. Default is 0.

overwrite_b : int, optional

If nonzero, b may be overwritten in place. Default is 0.

Returns

c : ndarray

Cholesky factor of a, in the selected triangle.

x : ndarray

Solution of the system.

info : int

0 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.cposv