[Numpy-discussion] Swig typemaps for inplace fortran arrays
mcfarljm at gmail.com
Sat May 18 11:00:08 EDT 2019
In numpy.i, I’m looking at the typemaps for inplace Fortran arrays, for
Typemap suite for (DATA_TYPE* INPLACE_FARRAY2, DIM_TYPE DIM1, DIM_TYPE DIM2)
The typemap code (e.g. line 1579) uses the require_contiguous function for
error checking, but I think maybe this is supposed to be
require_c_or_f_contiguous? Otherwise, if the provided numpy array is in
Fortran order, it will fail require_contiguous and generate a TypeError.
(For what it’s worth, I pulled down the latest numpy.i from github and was
doing some testing with numpy 1.13.3 under Python 2.7.16.)
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the NumPy-Discussion