[SciPy-user] array mean issue...

fred fredmfp@gmail....
Wed Jun 11 05:30:45 CDT 2008


Hi,

I get the following issue I don't understand:

marsu:~/{1}/> a=rand(400,400,400)

marsu:~/{2}/> a.mean()
Out[2]: 0.500002086829

marsu:~/{3}/> b=asarray(a, dtype='f')

marsu:~/{4}/> b.mean()
Out[4]: 0.262144

What's going on ?

How can I compute the mean on "big" float arrays ?

By "big", I mean that for array of 300x300x300, I get the same results 
for float32 and float64 arrays.

TIA.

Cheers,

-- 
Fred


More information about the SciPy-user mailing list