[Numpy-svn] [numpy/numpy] b9ef15: BUG: Fix use of PyArray_ISFORTRAN in numpy.i.

GitHub noreply at github.com
Sun Nov 1 20:05:58 EST 2015


  Branch: refs/heads/master
  Home:   https://github.com/numpy/numpy
  Commit: b9ef15c4ece1e74d315289584fe33e98bd0c5633
      https://github.com/numpy/numpy/commit/b9ef15c4ece1e74d315289584fe33e98bd0c5633
  Author: Charles Harris <charlesr.harris at gmail.com>
  Date:   2015-11-01 (Sun, 01 Nov 2015)

  Changed paths:
    M tools/swig/numpy.i

  Log Message:
  -----------
  BUG: Fix use of PyArray_ISFORTRAN in numpy.i.

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.


  Commit: d07e84c499aaaa04b0723bf80e7c41aba7b5d51c
      https://github.com/numpy/numpy/commit/d07e84c499aaaa04b0723bf80e7c41aba7b5d51c
  Author: Charles Harris <charlesr.harris at gmail.com>
  Date:   2015-11-01 (Sun, 01 Nov 2015)

  Changed paths:
    M numpy/core/numeric.py

  Log Message:
  -----------
  DOC: Update documentation for isfortran.

Clarify isfortran checks if an array is both Fortran contiguous and
*not* C contiguous. The suggests that it only checks if the array is F
contiguous, but that is not the case.


  Commit: 34051eb5427869a62bee6809a8d8c89ba52a7600
      https://github.com/numpy/numpy/commit/34051eb5427869a62bee6809a8d8c89ba52a7600
  Author: Charles Harris <charlesr.harris at gmail.com>
  Date:   2015-11-01 (Sun, 01 Nov 2015)

  Changed paths:
    M doc/release/1.10.2-notes.rst

  Log Message:
  -----------
  DOC: Update 1.10.2 release notes to mention fix to numpy.i


  Commit: 141339ba01cc331f7d6903c8be6ef20d9904d34d
      https://github.com/numpy/numpy/commit/141339ba01cc331f7d6903c8be6ef20d9904d34d
  Author: Charles Harris <charlesr.harris at gmail.com>
  Date:   2015-11-01 (Sun, 01 Nov 2015)

  Changed paths:
    M doc/release/1.10.2-notes.rst
    M numpy/core/numeric.py
    M tools/swig/numpy.i

  Log Message:
  -----------
  Merge pull request #6596 from charris/fix-swig-for-relaxed-strides

Fix swig for relaxed stride checking


Compare: https://github.com/numpy/numpy/compare/629d4081ad29...141339ba01cc


More information about the Numpy-svn mailing list