[Numpy-discussion] A memory problem: why does mmap come up in numpy.inner?

Nathan Bell wnbell@gmail....
Wed Jun 4 22:08:07 CDT 2008


On Wed, Jun 4, 2008 at 9:50 PM, Dan Yamins <dyamins@gmail.com> wrote:
>>
>> In [3]: numpy.dtype(numpy.uintp).itemsize
>> Out[3]: 4
>>
>> which is the size in bytes of the integer needed to hold a pointer. The
>> output above is for 32 bit python/numpy.
>>
>
> Check, the answer is 4, as you got for the 32-bit.   What would the answer
> be on a 64-bit architecture?  Why is this diagnostic?

It would be 8 on a 64-bit architecture (with a 64-bit binary):  8
bytes = 64 bits, 4 bytes = 32 bits.

-- 
Nathan Bell wnbell@gmail.com
http://graphics.cs.uiuc.edu/~wnbell/


More information about the Numpy-discussion mailing list