[Numpy-discussion] Swig typemaps for inplace fortran arrays
John McFarland
mcfarljm at gmail.com
Sat May 18 11:00:08 EDT 2019
Hi,
In numpy.i, I’m looking at the typemaps for inplace Fortran arrays, for
example:
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.)
Thanks,
John
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/numpy-discussion/attachments/20190518/e734cb40/attachment.html>
More information about the NumPy-Discussion
mailing list