[Numpy-discussion] SWIG, typemaps, 2D argout arrays
Christopher Barker
Chris.Barker at noaa.gov
Tue Oct 14 14:14:44 EDT 2008
>> It seems like I should use:
>>
>> (int* ARGOUT_ARRAY1, int DIM1)
>>
>> and then provide a python function which reshapes the 1D array?
Oh, another option is to use:
( DATA_TYPE* INPLACE_FARRAY2, int DIM1, int DIM2 )
and create the array in python first. This could be done with a little
wrapper, if you want.
-Chris
--
Christopher Barker, Ph.D.
Oceanographer
Emergency Response Division
NOAA/NOS/OR&R (206) 526-6959 voice
7600 Sand Point Way NE (206) 526-6329 fax
Seattle, WA 98115 (206) 526-6317 main reception
Chris.Barker at noaa.gov
More information about the NumPy-Discussion
mailing list