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

2006-09-15 Thread Albert Strasheim
 -Original Message-
 From: [EMAIL PROTECTED] [mailto:numpy-
 [EMAIL PROTECTED] On Behalf Of Sebastian Haase
 Sent: 15 September 2006 03:21
 To: numpy-discussion
 Subject: [Numpy-discussion] how to get info about internals of an
 arrayobject ?
 
 Hi,
 what I'm asking is if numpy has an equivalent to numarray's info()
 function:

 snip

 This was always helpful to me when debugging C binding code.
 
 Especially I'm asking if there is any way to get the memory address of an
 array - for debugging purposes only - of course ;-)

numpy.array([]).__array_interface__['data'][0]

Cheers,

Albert


-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
Numpy-discussion mailing list
Numpy-discussion@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/numpy-discussion


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

2006-09-15 Thread Travis Oliphant
Albert Strasheim wrote:
 -Original Message-
 From: [EMAIL PROTECTED] [mailto:numpy-
 [EMAIL PROTECTED] On Behalf Of Sebastian Haase
 Sent: 15 September 2006 03:21
 To: numpy-discussion
 Subject: [Numpy-discussion] how to get info about internals of an
 arrayobject ?

 Hi,
 what I'm asking is if numpy has an equivalent to numarray's info()
 function:
 

   
 snip
 

   
 This was always helpful to me when debugging C binding code.

 Especially I'm asking if there is any way to get the memory address of an
 array - for debugging purposes only - of course ;-)
 

 numpy.array([]).__array_interface__['data'][0]
   

Or

numpy.ctypes._as_parameter_

(should work even if you don't have ctypes installed)

-Travis


-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
Numpy-discussion mailing list
Numpy-discussion@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/numpy-discussion