[SciPy-user] Invert of a sparse matrix

Robert Cimrman cimrman3 at ntc.zcu.cz
Thu Oct 19 10:53:38 CDT 2006


Nils Wagner wrote:
> Sam frizou wrote:
>> Hi,
>>
>> Is there a trick for computing the invert of a square SPARSE matrix ?
>>
>> Thanks
>> _______________________________________________
>> SciPy-user mailing list
>> SciPy-user at scipy.org
>> http://projects.scipy.org/mailman/listinfo/scipy-user
>>   
> You can solve n equations where the i-th rhs is a unit-vector e_i in the
> corresponding direction.

and for this you should first perform LU factorization and then use the
pre-factorized matrix for the multiple-rhs problem, see scipy.linsolve docs.

r.


More information about the SciPy-user mailing list