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

bundles / scipy latest / scipy / sparse / linalg / _isolve / utils / make_system

function

scipy.sparse.linalg._isolve.utils:make_system

source: build-install/usr/lib/python3.14/site-packages/scipy/sparse/linalg/_isolve/utils.py:31

Signature

def make_system(A, M, x0, b)

Summary

Make a linear system Ax=b

Parameters

A : LinearOperator

sparse or dense matrix (or any valid input to aslinearoperator)

M : {LinearOperator, Nones}

preconditioner sparse or dense matrix (or any valid input to aslinearoperator)

x0 : {array_like, str, None}

initial guess to iterative method. x0 = 'Mb' means using the nonzero initial guess M @ b. Default is None, which means using the zero initial guess.

b : array_like

right hand side

Returns

: (A, M, x, b)

A

matrix of the linear system

M

preconditioner

x

initial guess

b

right hand side

Aliases

  • scipy.sparse.linalg._isolve._gcrotmk.make_system