Re: [Numpy-discussion] Looking to access C array in numpy.

2008-01-22 Thread Travis E. Oliphant
Travis E. Oliphant wrote: > Clarke, Trevor wrote: > >> -BEGIN PGP SIGNED MESSAGE- >> Hash: SHA1 >> >> I'm calling some python code from a C++ app via an intermediary library >> (i.e. I can't directly create Python C objects like Buffers). I'm >> passing a void* (cast to a long) to the py

Re: [Numpy-discussion] Looking to access C array in numpy.

2008-01-22 Thread Travis E. Oliphant
Clarke, Trevor wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > I'm calling some python code from a C++ app via an intermediary library > (i.e. I can't directly create Python C objects like Buffers). I'm > passing a void* (cast to a long) to the python method and I'd like to > use numpy

[Numpy-discussion] Looking to access C array in numpy.

2008-01-22 Thread Clarke, Trevor
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 I'm calling some python code from a C++ app via an intermediary library (i.e. I can't directly create Python C objects like Buffers). I'm passing a void* (cast to a long) to the python method and I'd like to use numpy to access that memory as an array.