[SciPy-user] A.mean(0) for sparse matrices

Nathan Bell wnbell at gmail.com
Tue Jul 8 06:08:10 EDT 2008


On Mon, Jul 7, 2008 at 8:33 PM, Dinesh B Vadhia
<dineshbvadhia at hotmail.com> wrote:
>
> Next, I want to get the mean of A with:
> column_mean = A.mean(0)
>
> I would expect column_mean to be a float vector but instead I get an integer
> vector.  Have I missed something?
>

Nope, it's a bug.

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



More information about the SciPy-User mailing list