Re: [Numpy-discussion] how to get info about internals of an array object ?

2006-09-15 Thread Sebastian Haase
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

Re: [Numpy-discussion] how to get info about internals of an array object ?

2006-09-15 Thread Travis Oliphant
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

Re: [Numpy-discussion] how to get info about internals of an array object ?

2006-09-15 Thread Sebastian Haase
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

Re: [Numpy-discussion] how to get info about internals of an array object ?

2006-09-15 Thread Travis Oliphant
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 ---

Re: [Numpy-discussion] how to get info about internals of an array object ?

2006-09-14 Thread Francesc Altet
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])

[Numpy-discussion] how to get info about internals of an array object ?

2006-09-14 Thread Sebastian Haase
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