[Numpy-discussion] Numeric vs numarray?

Timo Korvola tkorvola at welho.com
Thu Feb 10 05:25:29 EST 2005

Peter Verveer <verveer at embl-heidelberg.de> writes:
> The NA_IoArray function I don't really need.

Depends on what C code you are working with.  Bidirectional array
arguments are not uncommon in libraries.

> Maybe I have understood the Numeric API wrong and you can do this
> right now, I have not used it very much lately.

Perhaps you can but you would have to write it all yourself.  In
Numarray that work has been done for you.  The three functions
NA_{Input,Output,Io}Array are pretty much all you need for accessing C
libraries with the usual (int size, double *data) interface, whichever
way the data goes.

	Timo Korvola		<URL:http://www.iki.fi/tkorvola>

More information about the NumPy-Discussion mailing list