[C++-sig] numeric::array howto

Olivier Ravard olivier.ravard at novagrid.com
Mon Nov 24 19:33:34 CET 2003


Hi ,

I want to write an interface of a given library for python and my
problem is to convert internal vectors (like standards C vectors) 
to numeric::array.
After hundred of tests, nothing works.

Is there examples which show how to use numeric::array ?

My problems are :
    - to create a numeric::array of a given size (which is known at the 
        runtime)
    - to acces the number of elements of a numeric::array (v.nelements()
        doesn't work)
    - to acces to the data pointer for a memcpy.

Sorry if it is an FAQ.

Thanks.

Olivier Ravard

[image]
[image]
[image]

NovaGrid S.A.

olivier.ravard at novagrid.com
WEB : http://www.novagrid.com
TEL/FAX : 02 23 23 62 32
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/cplusplus-sig/attachments/20031124/b5f2897c/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: petitlogo.gif
Type: image/gif
Size: 2078 bytes
Desc: not available
URL: <http://mail.python.org/pipermail/cplusplus-sig/attachments/20031124/b5f2897c/attachment.gif>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: rule-blue-right.png
Type: image/png
Size: 207 bytes
Desc: not available
URL: <http://mail.python.org/pipermail/cplusplus-sig/attachments/20031124/b5f2897c/attachment.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: transparent.png
Type: image/png
Size: 144 bytes
Desc: not available
URL: <http://mail.python.org/pipermail/cplusplus-sig/attachments/20031124/b5f2897c/attachment-0001.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: rule-blue-center.png
Type: image/png
Size: 160 bytes
Desc: not available
URL: <http://mail.python.org/pipermail/cplusplus-sig/attachments/20031124/b5f2897c/attachment-0002.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: rule-blue-left.png
Type: image/png
Size: 207 bytes
Desc: not available
URL: <http://mail.python.org/pipermail/cplusplus-sig/attachments/20031124/b5f2897c/attachment-0003.png>


More information about the Cplusplus-sig mailing list