array(1, dtype=float32).itemsize
Nadav
-Original Message-
From: [EMAIL PROTECTED] on behalf of Yves Revaz
Sent: Sun 14-Oct-07 16:44
To: numpy-discussion@scipy.org
Subject: [Numpy-discussion] .bytes
Dear list,
I'm translating codes from numarray to numpy.
Unfortunately, I'm unable to
Hi,
In the description field, you have itemsize which is what you want.
Matthieu
2007/10/14, Yves Revaz <[EMAIL PROTECTED]>:
>
> Dear list,
>
> I'm translating codes from numarray to numpy.
> Unfortunately, I'm unable to find the equivalent of the command
> that give the number of bytes for a gi
Dear list,
I'm translating codes from numarray to numpy.
Unfortunately, I'm unable to find the equivalent of the command
that give the number of bytes for a given type :
using numarray I used :
>>> Float32.bytes
4
I'm sure there is a solution in numpy,
but I'm unable to find it.
Thanks,
Yves