[Numpy-discussion] switching to float32
Fri Jun 26 03:39:37 CDT 2009
John Schulman <joschu <at> caltech.edu> writes:
> I'm trying to reduce the memory used in a calculation, so I'd like to
> switch my program to float32 instead of float64. Is it possible to
> change the numpy default float size, so I don't have to explicitly
> state dtype=np.float32 everywhere?
Possibly not the nicest way, but
np.float64 = np.float32
somewhere at the beginning should work.
More information about the Numpy-discussion