[SciPy-user] array mean issue...
fred
fredmfp at gmail.com
Wed Jun 11 06:30:45 EDT 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