summaryrefslogtreecommitdiff
path: root/tools/swig
AgeCommit message (Collapse)AuthorFilesLines
2016-06-18Avoid NPY_ARRAY_F_CONTIGUOUS for numpy < 1.7Jan David Mol1-1/+6
numpy API < 1.7 does not support NPY_ARRAY_F_CONTIGUOUS.or PyArray_IS_F_CONTIGUOUS. Supporting old APIs is useful as users tend to ship modern numpy.i files to compile against possibly older numpy installations.
2016-04-22Fix a false positive OverflowError in Python 3.x when value above 0x7FFFFFF ↵Mathieu Lamarre1-7/+14
are passed to a function accepting "unsigned int". This a port of a fix in pyprimtype.swg from which several code snippets where copy pasted into swig/pyfragments.swg. Please see SWIG changes log (2015-12-23) for more details: http://www.swig.org/Release/CHANGES.current 2015-12-23: ahnolds [Python] Fixes for conversion of signed and unsigned integer types ...
2015-12-20MAINT: Remove commented out code blocksgfyoung1-10/+0
2015-12-19DOC: Use print only as function when print_function is imported from __future__gfyoung1-1/+1
Closes gh-6863.
2015-11-04BUG: Fix swig make_fortran function.Charles Harris1-1/+1
The function was calling PyArray_FromArray with NPY_FORTRANORDER instead of NPY_ARRAY_F_CONTIGUOUS. The first is of type NPY_ORDER and the second is a flag. Closes #6618. [ci skip]
2015-11-01BUG: Fix use of PyArray_ISFORTRAN in numpy.i.Charles Harris1-1/+1
PyArray_ISFORTRAN was used to implement array_is_fortran in numpy.i when what was wanted was PyArray_IS_F_CONTIGUOUS. The difference is that PyArray_ISFORTRAN will return False if the array is c_contiguous. Previous to relaxed stride checking this did not matter, but currently arrays with ndim > 1 may be both C and Fortran contiguous and that results in errors when PyArray_ISFORTRAN is mistakenly used to check for Fortran contiguity.
2015-09-02typo in numpy.ijschueller1-1/+1
2015-05-25New typemap for in-place arrays of arbitrary number of dimensions:Tom Krauss8-26/+394
(DATA_TYPE* INPLACE_ARRAY_FLAT, DIM_TYPE DIM_FLAT) Added unittests, updated documentation.
2015-03-18DOC: put a copy of the text in LICENSE.txt into tools/swig/numpy.iRalf Gommers1-0/+34
Reason: numpy.i is supposed to be copied, not used from within an installed Numpy version. Closes gh-5690 [ci skip]
2015-02-15Correct exit code if number of errors % 256 == 0Chris Lamb7-7/+7
For example, we had 256 errors (etc.) our process will exit with a successful error code which is incorrect and/or misleading. Signed-off-by: Chris Lamb <chris@chris-lamb.co.uk>
2015-02-13Use correct #ifdef __cplusplus guard to include std_complex.iMichele Vallisneri1-2/+2
2014-11-07ENH: added std::complex support to numpy.iGlen Mabey7-12/+333
numpy.i now includes ready-made typemaps for std::complex<float> and std::complex<double> . Tests were added to testArray using a newly defined ArrayZ class.
2014-06-16Fix typemap for Fortran ordered array inputAdam Reeve1-3/+3
The typemaps with size parameters after the array pointer were correct, but the typemaps with size parameters before the array pointer created arrays with C ordering.
2014-05-26BUG: Fix missing fragment in ARGOUTVIEWM typemaps.David Froger1-18/+18
The argout typemaps of all the ARGOUTVIEWM typemap suites make use of the free_cap function, defined in the NumPy_Utilities fragment, which was not listed in the fragment argument of the typemaps. As a result, the free_cap function is not included in the source generated code by SWIG, and the code do not compile (unless another typemap including the missing fragment has been used).
2014-03-12STY: Whitespace patrol on numpy.i.Charles Harris1-6/+6
2014-03-12MAINT: Move doc/swig to tools/swig.Charles Harris36-0/+7361
Also update MANIFEST.in and documentation to reflect the move. The discussion of this change is at #2384. Closes #2384. Closes #4374.