[Numpy-svn] [numpy/numpy] d66196: BUG: copy.(deep)copy should preserve F-contiguity

GitHub noreply@github....
Sun Jun 9 09:35:51 CDT 2013


  Branch: refs/heads/master
  Home:   https://github.com/numpy/numpy
  Commit: d661960b3489c83485a3aa83e909e2ee603e7422
      https://github.com/numpy/numpy/commit/d661960b3489c83485a3aa83e909e2ee603e7422
  Author: David Warde-Farley <wardefar@iro.umontreal.ca>
  Date:   2013-06-08 (Sat, 08 Jun 2013)

  Changed paths:
    M numpy/core/src/multiarray/methods.c
    M numpy/core/tests/test_regression.py

  Log Message:
  -----------
  BUG: copy.(deep)copy should preserve F-contiguity

Currently, copy.deepcopy() on certain objects in scikit-learn results
in the copied object being broken, as underlying methods depend on
members being F-contiguous. I can think of no reason that F-contiguous
arrays should not remain F-contiguous through a copy.copy/copy.deepcopy,
therefore this alters the methods to use NPY_KEEPORDER when allocating
the copy.


  Commit: 18e7f40e97cae555f0446da99180525a8d259d81
      https://github.com/numpy/numpy/commit/18e7f40e97cae555f0446da99180525a8d259d81
  Author: David Warde-Farley <wardefar@iro.umontreal.ca>
  Date:   2013-06-08 (Sat, 08 Jun 2013)

  Changed paths:
    M numpy/core/tests/test_multiarray.py

  Log Message:
  -----------
  TST: expected behaviour of .copy()


  Commit: 704b456e49b13150aa693f4fd7d66dca0d541f0b
      https://github.com/numpy/numpy/commit/704b456e49b13150aa693f4fd7d66dca0d541f0b
  Author: Charles Harris <charlesr.harris@gmail.com>
  Date:   2013-06-09 (Sun, 09 Jun 2013)

  Changed paths:
    M numpy/core/src/multiarray/methods.c
    M numpy/core/tests/test_multiarray.py
    M numpy/core/tests/test_regression.py

  Log Message:
  -----------
  Merge pull request #3415 from charris/pull-2699-rebased

Pull 2699 rebased


Compare: https://github.com/numpy/numpy/compare/8dcf39797808...704b456e49b1


More information about the Numpy-svn mailing list