[Numpy-svn] [numpy/numpy] aada93: ENH: Add 'subok' parameter to PyArray_NewLikeArray...

noreply@githu... noreply@githu...
Tue Mar 15 13:22:37 CDT 2011


Branch: refs/heads/master
Home:   https://github.com/numpy/numpy

Commit: aada93306acfb4e2eb816faf32652edf8825cf45
    https://github.com/numpy/numpy/commit/aada93306acfb4e2eb816faf32652edf8825cf45
Author: Mark Wiebe <mwwiebe@gmail.com>
Date:   2011-03-15 (Tue, 15 Mar 2011)

Changed paths:
  M doc/source/reference/c-api.array.rst
  M numpy/add_newdocs.py
  M numpy/core/numeric.py
  M numpy/core/src/multiarray/convert.c
  M numpy/core/src/multiarray/ctors.c
  M numpy/core/src/multiarray/multiarraymodule.c
  M numpy/core/src/umath/ufunc_object.c
  M numpy/core/tests/test_numeric.py

Log Message:
-----------
ENH: Add 'subok' parameter to PyArray_NewLikeArray, np.empty_like, np.zeros_like, and np.ones_like

This way, the sub-type can be avoided if necessary. This helps mitigate,
but doesn't fix, ticket #1753, by allowing "b = np.empty_like(a, subok=False)".




More information about the Numpy-svn mailing list