On Friday 15 September 2006 12:49, Travis Oliphant wrote:
> Sebastian Haase wrote:
> >On Friday 15 September 2006 10:00, Travis Oliphant wrote:
> >>Sebastian Haase wrote:
> >>>Hi,
> >>>
> >>>what I'm asking is if numpy has an equivalent to numarray's info()
> >
> >function:
> >>na.arange(10).in
Sebastian Haase wrote:
>On Friday 15 September 2006 10:00, Travis Oliphant wrote:
>
>
>>Sebastian Haase wrote:
>>
>>
>>>Hi,
>>>
>>>what I'm asking is if numpy has an equivalent to numarray's info()
>>>
>>>
>function:
>
>
>>na.arange(10).info()
>>
>>
>>numpy.n
On Friday 15 September 2006 10:00, Travis Oliphant wrote:
> Sebastian Haase wrote:
> > Hi,
> >
> > what I'm asking is if numpy has an equivalent to numarray's info()
function:
> na.arange(10).info()
>
> numpy.numarray.info(numpy.arange(10))
>
> (get recent SVN as there were some bugs just fix
Sebastian Haase wrote:
> Hi,
> what I'm asking is if numpy has an equivalent to numarray's info() function:
>
na.arange(10).info()
numpy.numarray.info(numpy.arange(10))
(get recent SVN as there were some bugs just fixed.
-Travis
---
El dj 14 de 09 del 2006 a les 18:20 -0700, en/na Sebastian Haase va
escriure:
> Especially I'm asking if there is any way to get the memory address of an
> array - for debugging purposes only - of course ;-)
For this, you can print the data buffer:
In [1]:import numpy
In [2]:a=numpy.array([1])
Hi,
what I'm asking is if numpy has an equivalent to numarray's info() function:
>>> na.arange(10).info()
class:
shape: (10,)
strides: (4,)
byteoffset: 0
bytestride: 4
itemsize: 4
aligned: 1
contiguous: 1
buffer:
data pointer: 0x085b7ec8 (DEBUG ONLY)
byteorder: 'little'
byteswap: 0
type: Int32
T