On Thu, 23 Oct 2008 13:56:22 -0700, John [H2O] wrote: > I'm using zeros with type np.float, is there a way to define the data > type to be 4 byte floats?
Yes:
In [13]: numpy.zeros(5, numpy.float32)
Out[13]: array([ 0., 0., 0., 0., 0.], dtype=float32)
Ciao,
Marc 'BlackJack' Rintsch
--
http://mail.python.org/mailman/listinfo/python-list
