[SciPy-User] Norm for Sparse Matrix

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

[SciPy-User] Norm for Sparse Matrix

Wenlei Xie
Hi,

The function numpy.linalg.norm doesn't seem to work with sparse matrices. I am wondering if there is any function to get the norm for sparse matrices?

Thank you!

Best,
Wenlei





_______________________________________________
SciPy-User mailing list
[hidden email]
http://mail.scipy.org/mailman/listinfo/scipy-user
Reply | Threaded
Open this post in threaded view
|

Re: Norm for Sparse Matrix

ralfgommers
Hi Wenlei,


On Thu, Apr 30, 2015 at 11:43 PM, Wenlei Xie <[hidden email]> wrote:
Hi,

The function numpy.linalg.norm doesn't seem to work with sparse matrices. I am wondering if there is any function to get the norm for sparse matrices?


Current master contains a function that does this: https://github.com/scipy/scipy/blob/master/scipy/sparse/linalg/_norm.py
Will be in the 0.16.0 release.

Ralf
 

_______________________________________________
SciPy-User mailing list
[hidden email]
http://mail.scipy.org/mailman/listinfo/scipy-user