Did I find the right examples for you? yes no

All Samples(2)  |  Call(2)  |  Derive(0)  |  Import(0)
Solve the linear system Ax = rhs for x where A = self.

This is for symbolic matrices, for real or complex ones use
sympy.mpmath.lu_solve or sympy.mpmath.qr_solve.

See Also
========

lower_triangular_solve
upper_triangular_solve(more...)

src/s/y/sympy-0.7.5/sympy/matrices/tests/test_immutable.py   sympy(Download)
    assert (type(q), type(r)) == (ImmutableMatrix, ImmutableMatrix)
 
    assert type(X.LUsolve(Y)) == ImmutableMatrix
    assert type(X.QRsolve(Y)) == ImmutableMatrix
 

src/s/y/sympy-HEAD/sympy/matrices/tests/test_immutable.py   sympy(Download)
    assert (type(q), type(r)) == (ImmutableMatrix, ImmutableMatrix)
 
    assert type(X.LUsolve(Y)) == ImmutableMatrix
    assert type(X.QRsolve(Y)) == ImmutableMatrix