[SciPy-User] extracting diagonals efficiently from DIA matrix
Juan Nunez-Iglesias
jni.soma at gmail.com
Mon Apr 3 00:17:14 EDT 2017
Hey Gideon,
The diagonals are in the .data attribute, and the offsets in the .offsets attribute.
hth,
Juan.
On 2 Apr 2017, 5:42 PM -0400, Gideon Simpson <gideon.simpson at gmail.com>, wrote:
> If I have a matrix that was constructed using spdiags is there a routine that will efficiently extract the diagonals?
>
> -gideon
>
> _______________________________________________
> SciPy-User mailing list
> SciPy-User at python.org
> https://mail.python.org/mailman/listinfo/scipy-user
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/scipy-user/attachments/20170403/967a9611/attachment.html>
More information about the SciPy-User
mailing list