[SciPy-user] Sparse csr_matrix and column sum

Nathan Bell wnbell at gmail.com
Sun Apr 27 22:48:41 EDT 2008


On Sun, Apr 27, 2008 at 9:32 PM, Dinesh B Vadhia
<dineshbvadhia at hotmail.com> wrote:
>
> Sorry, I wasn't being imprecise as A.sum(0) didn't work and still doesn't -
> I've just tried again.  However, A.todense().sum(0) does work - but takes a
> performance hit.  My import statements are:

You still haven't informed us what exactly "didn't work".  Can you
provide the error message you get when using A.sum(0) where A is a
csr_matrix?  Are you using SciPy from SVN or a previous version?


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



More information about the SciPy-User mailing list