Module ImportFrom alias alias alias Assign NameStore Str Assign NameStore ListLoad ImportFrom alias ImportFrom alias alias alias alias alias alias ImportFrom alias alias alias Assign NameStore Dict TupleLoad Str Str TupleLoad Str Str TupleLoad Str Str TupleLoad Str Str TupleLoad Str Str TupleLoad Str Str TupleLoad Str Str TupleLoad Str Str TupleLoad Str Str TupleLoad Str Str TupleLoad Str Str TupleLoad Str Str TupleLoad Str Str TupleLoad Str Str TupleLoad Str Str TupleLoad Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str FunctionDef arguments args NameParam NameParam defaults body If CompareNotIn NameLoad Str body Assign NameStore Str If CompareNotIn NameLoad Str body Assign NameStore Str Return SubscriptLoad NameLoad Index TupleLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults NameLoad body Expr Str Assign NameStore NameLoad Assign NameStore Call NameLoad NameLoad If CompareNotEq SubscriptLoad AttributeLoad NameLoad attr Index Num SubscriptLoad AttributeLoad NameLoad attr Index Num body Raise Call NameLoad BinOpMod Str TupleLoad AttributeLoad NameLoad attr Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index Num Assign NameStore Call NameLoad NameLoad If UnaryOpNot BoolOpOr CompareEq AttributeLoad NameLoad attr TupleLoad NameLoad Num CompareEq AttributeLoad NameLoad attr TupleLoad NameLoad body Raise Call NameLoad Str If CompareNotIn AttributeLoad AttributeLoad NameLoad attr attr Str body Assign NameStore Call AttributeLoad NameLoad attr Str FunctionDef arguments args NameParam defaults body If Call NameLoad NameLoad NameLoad body Assign NameStore Call NameLoad NameLoad Return Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list If CompareIs NameLoad NameLoad body If Call NameLoad NameLoad Str body Assign NameStore AttributeLoad AttributeLoad NameLoad attr attr orelse Assign NameStore AttributeLoad AttributeLoad Call AttributeLoad NameLoad attr NameLoad attr attr Assign NameStore Call NameLoad NameLoad AttributeLoad AttributeLoad NameLoad attr attr orelse Expr Call NameLoad Str NameLoad If CompareEq NameLoad Num body Assign NameStore AttributeLoad AttributeLoad NameLoad attr attr orelse If CompareNotIn NameLoad Str body Raise Call NameLoad Str Assign NameStore Call NameLoad NameLoad keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr If CompareIs NameLoad NameLoad body Assign NameStore Call NameLoad NameLoad keyword NameLoad orelse Assign NameStore Call NameLoad NameLoad keyword NameLoad If UnaryOpNot BoolOpOr CompareEq AttributeLoad NameLoad attr TupleLoad NameLoad Num CompareEq AttributeLoad NameLoad attr TupleLoad NameLoad body Raise Call NameLoad Str Assign NameStore Call AttributeLoad NameLoad attr If CompareIs NameLoad NameLoad body If Call NameLoad NameLoad Str body Assign NameStore AttributeLoad NameLoad attr orelse Assign NameStore NameLoad If Call NameLoad NameLoad Str body Assign NameStore AttributeLoad NameLoad attr orelse Assign NameStore NameLoad If BoolOpAnd CompareIs NameLoad NameLoad CompareIs NameLoad NameLoad body Assign NameStore Call NameLoad keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr orelse Assign NameStore Call NameLoad AttributeLoad NameLoad attr keyword NameLoad keyword NameLoad keyword AttributeLoad NameLoad attr orelse Assign NameStore Call NameLoad NameLoad If CompareNotEq AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Raise Call NameLoad Str Return TupleLoad NameLoad NameLoad NameLoad NameLoad NameLoad decorator_list
N/A __future__ division print_function absolute_import N/A __docformat__ restructuredtext en N/A __all__ N/A warnings warn numpy asanyarray asarray asmatrix array matrix zeros scipy.sparse.linalg.interface aslinearoperator LinearOperator IdentityOperator N/A _coerce_rules N/A N/A f f N/A f d N/A f F N/A f D N/A d f N/A d d N/A d F N/A d D N/A F f N/A F d N/A F F N/A F D N/A D f N/A D d N/A D F N/A D D f d F D d d D D F D F D D D D D coerce N/A N/A x y N/A N/A N/A N/A x fdFD N/A N/A x d N/A N/A y fdFD N/A N/A y d N/A N/A _coerce_rules N/A N/A x y N/A id N/A N/A x N/A N/A N/A x N/A make_system N/A N/A A M x0 b xtype N/A None N/A N/A 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, None}
        initial guess to iterative method
    b : array_like
        right hand side
    xtype : {'f', 'd', 'F', 'D', None}, optional
        dtype of the x vector

    Returns
    -------
    (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)

     N/A A_ A N/A A N/A aslinearoperator A N/A N/A N/A N/A A shape N/A 0 N/A N/A A shape N/A 1 N/A N/A N/A ValueError N/A expected square matrix, but got shape=%s N/A N/A A shape N/A N N/A N/A A shape N/A 0 N/A b N/A asanyarray b N/A N/A N/A N/A N/A b shape N/A N 1 N/A N/A b shape N/A N N/A N/A N/A ValueError A and b have incompatible dimensions N/A N/A N/A N/A b dtype char fdFD N/A N/A b N/A N/A b astype d postprocess N/A N/A x N/A N/A N/A N/A isinstance b matrix N/A N/A x N/A asmatrix x N/A N/A N/A x reshape N/A b shape N/A N/A N/A xtype None N/A N/A N/A hasattr A dtype N/A N/A xtype N/A N/A A dtype char N/A N/A xtype N/A N/A N/A N/A A matvec b dtype char N/A xtype N/A coerce xtype N/A N/A b dtype char N/A N/A N/A warn Use of xtype argument is deprecated. Use LinearOperator( ... , dtype=xtype) instead. DeprecationWarning N/A N/A xtype 0 N/A N/A xtype N/A N/A b dtype char N/A N/A N/A xtype fdFD N/A N/A N/A ValueError xtype must be 'f', 'd', 'F', or 'D' N/A b N/A asarray b dtype xtype N/A b N/A N/A b ravel N/A N/A x0 None N/A N/A x N/A zeros N dtype xtype N/A N/A x N/A array x0 dtype xtype N/A N/A N/A N/A N/A x shape N/A N 1 N/A N/A x shape N/A N N/A N/A N/A ValueError A and x have incompatible dimensions N/A x N/A N/A x ravel N/A N/A M None N/A N/A N/A hasattr A_ psolve N/A N/A psolve N/A A_ psolve N/A N/A psolve id N/A N/A hasattr A_ rpsolve N/A N/A rpsolve N/A A_ rpsolve N/A N/A rpsolve id N/A N/A N/A psolve id N/A rpsolve id N/A N/A M N/A IdentityOperator shape N/A A shape dtype N/A A dtype N/A N/A M N/A LinearOperator N/A A shape matvec psolve rmatvec rpsolve dtype N/A A dtype N/A N/A M N/A aslinearoperator M N/A N/A N/A A shape N/A M shape N/A N/A N/A ValueError matrix and preconditioner have different shapes N/A N/A A M x b postprocess N/A