[Numpy-discussion] SWIG, typemaps, 2D argout arrays

T J tjhnson@gmail....
Tue Oct 14 12:51:43 CDT 2008


On Tue, Oct 14, 2008 at 1:02 AM, Sebastian Haase <haase@msg.ucsf.edu> wrote:
> b) I don't want to use Python / numpy API code in the C functions I'm
> wrapping - so I limit myself to "input" arrays! Since array memory
> does not distinguish between input or output (assuming there is no
> copying needed because of alignment or contiguity issues) the only
> implication of this is that I have to allocate the array outside the C
> functions.

To clarify, are you saying that you don't make any use of numpy.i?
The functions I'm writing are not making any explicit use of the
Python/numpy API, but I'm sure it shows up in the *_wrap.c file that
SWIG creates.

> input<->conversion transparently for my --- do you need to handle
> non-contiguous arrays ?

Probably not.

>
> HTH, I'm eager to learn here ;-)
>

Thanks


More information about the Numpy-discussion mailing list