[SciPy-user] broadcasting elementwise on sparse matrix

Nathan Bell wnbell@gmail....
Wed Oct 1 11:17:36 CDT 2008

On Wed, Oct 1, 2008 at 12:11 PM, Robin <robince@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@gmail.com

More information about the SciPy-user mailing list