
numpy.array(64.6).dtype
numpy.array(64).dtype
Hi, I'm running on a 64-bit machine, and see the following: dtype('float64') dtype('int64') Is there any function/setting to make these default to 32-bit types except where necessary? I don't mean by specifying dtype=numpy.float32 or dtype=numpy.int32. Ryan -- Ryan May Graduate Research Assistant School of Meteorology University of Oklahoma

On Tue, Nov 25, 2008 at 21:57, Ryan May <rmay31@gmail.com> wrote:
Hi,
I'm running on a 64-bit machine, and see the following:
numpy.array(64.6).dtype dtype('float64')
numpy.array(64).dtype dtype('int64')
Is there any function/setting to make these default to 32-bit types except where necessary?
Nope. -- Robert Kern "I have come to believe that the whole world is an enigma, a harmless enigma that is made terrible by our own mad attempt to interpret it as though it had an underlying truth." -- Umberto Eco
participants (2)
-
Robert Kern
-
Ryan May