summaryrefslogtreecommitdiff
path: root/tools/swig
Commit message (Collapse)AuthorAgeFilesLines
* Avoid NPY_ARRAY_F_CONTIGUOUS for numpy < 1.7Jan David Mol2016-06-181-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.
* Fix a false positive OverflowError in Python 3.x when value above 0x7FFFFFF ↵Mathieu Lamarre2016-04-221-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 ...
* MAINT: Remove commented out code blocksgfyoung2015-12-201-10/+0
|
* DOC: Use print only as function when print_function is imported from __future__gfyoung2015-12-191-1/+1
| | | | Closes gh-6863.
* BUG: Fix swig make_fortran function.Charles Harris2015-11-041-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]
* BUG: Fix use of PyArray_ISFORTRAN in numpy.i.Charles Harris2015-11-011-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.
* typo in numpy.ijschueller2015-09-021-1/+1
|
* New typemap for in-place arrays of arbitrary number of dimensions:Tom Krauss2015-05-258-26/+394
| | | | | (DATA_TYPE* INPLACE_ARRAY_FLAT, DIM_TYPE DIM_FLAT) Added unittests, updated documentation.
* DOC: put a copy of the text in LICENSE.txt into tools/swig/numpy.iRalf Gommers2015-03-181-0/+34
| | | | | | | | | Reason: numpy.i is supposed to be copied, not used from within an installed Numpy version. Closes gh-5690 [ci skip]
* Correct exit code if number of errors % 256 == 0Chris Lamb2015-02-157-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>
* Use correct #ifdef __cplusplus guard to include std_complex.iMichele Vallisneri2015-02-131-2/+2
|
* ENH: added std::complex support to numpy.iGlen Mabey2014-11-077-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.
* Fix typemap for Fortran ordered array inputAdam Reeve2014-06-161-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.
* BUG: Fix missing fragment in ARGOUTVIEWM typemaps.David Froger2014-05-261-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).
* STY: Whitespace patrol on numpy.i.Charles Harris2014-03-121-6/+6
|
* MAINT: Move doc/swig to tools/swig.Charles Harris2014-03-1236-0/+7361
Also update MANIFEST.in and documentation to reflect the move. The discussion of this change is at #2384. Closes #2384. Closes #4374.