[SciPy-user] broadcasting elementwise on sparse matrix

Nathan Bell wnbell at gmail.com
Wed Oct 1 12:17:36 EDT 2008


On Wed, Oct 1, 2008 at 12:11 PM, Robin <robince at gmail.com> wrote:
>
> That's quite tricky... :)
> It is a CSC matrix - not sure why, but I am saving and loading it from
> Matlab files, and when I first started (a year or so again) it seemed
> CSC was the most reliable (or at least I always got a CSC from .mat
> files).
> Presumably the same thing the same thing will work though.
>

Yep, except it would scale rows.  I'd stick with spdiags() for safety.

-- 
Nathan Bell wnbell at gmail.com
http://graphics.cs.uiuc.edu/~wnbell/



More information about the SciPy-User mailing list