sparse.linalg.isolve.utils

Module Contents

Functions

coerce(x,y)
id(x)
make_system(A,M,x0,b) Make a linear system Ax=b
coerce(x, y)
id(x)
make_system(A, M, x0, b)

Make a linear system Ax=b

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, None}
initial guess to iterative method
b : array_like
right hand side
(A, M, x, b, postprocess)
A : LinearOperator
matrix of the linear system
M : LinearOperator
preconditioner
x : rank 1 ndarray
initial guess
b : rank 1 ndarray
right hand side
postprocess : function
converts the solution vector to the appropriate type and dimensions (e.g. (N,1) matrix)