From a49ad1523c87766134aa98e04772d988040516fb Mon Sep 17 00:00:00 2001 From: Tom Krauss Date: Mon, 25 May 2015 13:05:05 -0500 Subject: New typemap for in-place arrays of arbitrary number of dimensions: (DATA_TYPE* INPLACE_ARRAY_FLAT, DIM_TYPE DIM_FLAT) Added unittests, updated documentation. --- doc/source/reference/swig.interface-file.rst | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'doc/source/reference/swig.interface-file.rst') diff --git a/doc/source/reference/swig.interface-file.rst b/doc/source/reference/swig.interface-file.rst index c381feb85..e5d369d0e 100644 --- a/doc/source/reference/swig.interface-file.rst +++ b/doc/source/reference/swig.interface-file.rst @@ -320,6 +320,17 @@ signatures are These typemaps now check to make sure that the ``INPLACE_ARRAY`` arguments use native byte ordering. If not, an exception is raised. +There is also a "flat" in-place array for situations in which +you would like to modify or process each element, regardless of the +number of dimensions. One example is a "quantization" function that +quantizes each element of an array in-place, be it 1D, 2D or whatever. +This form checks for continuity but allows either C or Fortran ordering. + +ND: + + * ``(DATA_TYPE* INPLACE_ARRAY_FLAT, DIM_TYPE DIM_FLAT)`` + + Argout Arrays ````````````` -- cgit v1.2.1