summaryrefslogtreecommitdiff
path: root/numpy
Commit message (Collapse)AuthorAgeFilesLines
...
* | | | | | | | Merge pull request #8187 from eric-wieser/accumulate-no-keepdimMarten van Kerkwijk2017-06-013-27/+4
|\ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | MAINT: Remove the unused keepdim argument from np.ufunc.accumulate
| * | | | | | | | API: Remove the keepdims argument to accumulateEric Wieser2017-06-013-27/+4
| | |/ / / / / / | |/| | | | | |
* | | | | | | | Merge pull request #9200 from eric-wieser/bincount-docsMarten van Kerkwijk2017-06-011-1/+1
|\ \ \ \ \ \ \ \ | |/ / / / / / / |/| | / / / / / | | |/ / / / / | |/| | | | | DOC: Update bincount docs to reflect gh-8348
| * | | | | | DOC: Update bincount docs to reflect gh-8348Eric Wieser2017-06-011-1/+1
| | |_|_|_|/ | |/| | | | | | | | | | | | | | | | [ci skip]
* | | | | | Merge pull request #9195 from mattip/continue-9087Marten van Kerkwijk2017-05-311-27/+29
|\ \ \ \ \ \ | | | | | | | | | | | | | | BUG: pull request 9087 modifies a tuple after use - avoid this.
| * | | | | | BUG: pull request 9087 modifies a tuple after usemattip2017-05-311-27/+29
| | | | | | |
* | | | | | | Merge pull request #9174 from pitrou/pickle_generic_datetimeCharles Harris2017-05-312-2/+59
|\ \ \ \ \ \ \ | | | | | | | | | | | | | | | | BUG: allow pickling generic datetime
| * | | | | | | BUG: allow pickling generic datetimeAntoine Pitrou2017-05-312-2/+59
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fixes #9159
* | | | | | | | TEST: test longdouble, clongdouble __int__() and int(), relate to warningsmattip2017-05-301-3/+16
| |/ / / / / / |/| | | | | |
* | | | | | | Merge pull request #9168 from k-kapp/simplify-if-statement/masterCharles Harris2017-05-271-1/+1
|\ \ \ \ \ \ \ | | | | | | | | | | | | | | | | MAINT: Simplify if statement
| * | | | | | | MAINT: Simplify if statementk_kapp@yahoo.com2017-05-241-1/+1
| | |_|/ / / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | isinstance(obj, ndarray) will return False if (obj is None) in any case, so no need to check whether (obj is not None) before it. All tests pass on my build (the most recent one at the time making this PR). However, this might have been done for backward compatibility. Will see how the CI tests do.
* | | | | | | Merge pull request #9167 from mhvk/ndarray__eq__overrideCharles Harris2017-05-242-2/+29
|\ \ \ \ \ \ \ | |_|/ / / / / |/| | | | | | BUG: ensure structured ndarray.__eq__,__ne__ defer when appropriate.
| * | | | | | BUG: ensure structured ndarray.__eq__,__ne__ defer when appropriate.Marten van Kerkwijk2017-05-232-2/+29
| |/ / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This solves the case where `other` is an object that defines a higher `__array_priority__` or `__array_ufunc__ = None`, but not yet the case where it defines its own implementation of `__array_ufunc__`.
* | | | | | BUG: have as_strided() keep custom dtypesAntoine Pitrou2017-05-242-4/+11
|/ / / / / | | | | | | | | | | | | | | | Fixes issue #9161
* | | | | BUG: set default type for empty index array to `numpy.intp` (#9142)Konrad Kapp2017-05-202-2/+12
| | | | | | | | | | | | | | | | | | | | Fixes #9137
* | | | | Merge pull request #9106 from mhvk/array_ufunc_reduce_out_tupleEric Wieser2017-05-187-66/+181
|\ \ \ \ \ | | | | | | | | | | | | BUG: Array ufunc reduce out tuple
| * | | | | DOC: update documentation allowing tuple of one in reduce, etc.Marten van Kerkwijk2017-05-174-15/+37
| | | | | |
| * | | | | BUG: ufunc.reduce,accumulate,reduceat cannot deal with out tuple.Marten van Kerkwijk2017-05-124-22/+94
| | | | | |
| * | | | | BUG: ensure axis=None gets passed on correctly to ufunc.reduce.Marten van Kerkwijk2017-05-122-34/+55
| |/ / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | By mistake, any arguments to ufunc.reduce, ufunc.accumulate, and ufunc.reduceat that were None were removed, rather than just removing the 'out' argument. This is corrected here, with tests added.
* | | | | DEP: Deprecate incorrect behavior of expand_dims.Charles Harris2017-05-172-4/+40
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Expand_dims works as documented when the index of the inserted NewAxis in the resulting array satisfies -a.ndim - 1 <= index <= a.ndim. However, when index > a.ndim index is replaced by a.ndim and, when index < -a.ndim - 1, it is replaced by index + a.ndim + 1, which may be negative and results in incorrect placement. The latter two cases are now deprecated. Closes #9100.
* | | | | Merge pull request #9112 from mhvk/array_ufunc_fast_scalar_powerMarten van Kerkwijk2017-05-173-33/+50
|\ \ \ \ \ | | | | | | | | | | | | BUG: ndarray.__pow__ does not check result of fast_scalar_power
| * | | | | BUG: errors in fast_scalar_power are not propagated.Marten van Kerkwijk2017-05-123-33/+50
| |/ / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | If one raises an ndarray or subclass to particular powers, fast_scalar_power is used in number.c -- this defers to another function (e.g., sqrt for 0.5), but does not check whether an error occurred. In consequece, if a subclass raises an error, and returns NULL, that gets interpreted as meaning the fast operation is not possible, and power is tried in turn, likely raising another exception. This commit fixes fast_scalar_power such that it returns success any time an operation is attempted.
* | | | | Merge pull request #8983 from ahaldane/fix0d_array2string_sEric Wieser2017-05-174-39/+72
|\ \ \ \ \ | | | | | | | | | | | | ENH: str/repr fixed for 0d-arrays
| * | | | | ENH: str/repr fixed for 0d-arraysAllan Haldane2017-05-164-39/+72
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 0d arrays now use the arrayprint.py formatters to print themselves. Deprecates 'style' argument to array2string. Integer scalars are no longer printed using the function set with ``np.set_print_function``.
* | | | | | Merge pull request #9119 from SuperBo/masterCharles Harris2017-05-161-9/+7
|\ \ \ \ \ \ | |/ / / / / |/| | | | | BUG: Fix error handling on PyCapsule when initializing multiarraymodule
| * | | | | BUG: Fix error handling on PyCapsule when initializing multiarraymoduleSuperBo2017-05-151-9/+7
| | | | | |
* | | | | | Merge pull request #9110 from juliantaylor/abs-no-elideCharles Harris2017-05-153-73/+85
|\ \ \ \ \ \ | | | | | | | | | | | | | | BUG: do not elide complex abs()
| * | | | | | MAINT: use PyArray_ISNUMBER to decide whether to elideJulian Taylor2017-05-151-2/+2
| | |_|_|/ / | |/| | | |
| * | | | | TST: move elision tests to their own class and add some moreJulian Taylor2017-05-121-73/+82
| | | | | |
| * | | | | BUG: only elide basic dtypes in unary opsJulian Taylor2017-05-121-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | As in binary operations, only elide unary operations on basic types to avoid odd interactions e.g. with user dtypes.
| * | | | | BUG: do not elide complex abs()Julian Taylor2017-05-122-1/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | complex abs() results in float so it cannot be elided. Closes gh-9109
* | | | | | Merge pull request #9113 from matthew-brett/delay-array2stringCharles Harris2017-05-151-16/+26
|\ \ \ \ \ \ | |_|/ / / / |/| | | | | BUG: delay calls of array repr in getlimits
| * | | | | RF: remove main clauseMatthew Brett2017-05-151-10/+0
| | | | | | | | | | | | | | | | | | | | | | | | Does not work, and shouldn't be there.
| * | | | | RF: delay calls of array repr in getlimitsMatthew Brett2017-05-151-6/+26
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Delay use of array repr until needed for string representations of the float info parameters. This is to allow getlimits to be imported early without pulling in too much of the repr machinery. See: https://github.com/numpy/numpy/pull/8983#discussion_r115838683
* | | | | | BUG: Fix reference count error of types when init multiarraymoduleSuperBo2017-05-141-8/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | PyDict_SetItemString has internally increased object reference. We don't need to INCREF before adding to module dict anymore.
* | | | | | Merge pull request #9116 from eric-wieser/stack-docsCharles Harris2017-05-131-1/+1
|\ \ \ \ \ \ | | | | | | | | | | | | | | DOC: link to stack from column_stack
| * | | | | | DOC: link to stack from column_stackEric Wieser2017-05-131-1/+1
| |/ / / / / | | | | | | | | | | | | | | | | | | [ci skip]
* | | | | | BUG: Compilation crashes in MSVC when LIB or INCLUDE is not setDavid Hagen2017-05-131-5/+5
|/ / / / /
* | | | | Merge pull request #9099 from charris/forwardport-9097Charles Harris2017-05-111-1/+1
|\ \ \ \ \ | | | | | | | | | | | | TST: fix test_basic failure on Windows
| * | | | | TST: fix test_basic failure on WindowsChristoph Gohlke2017-05-111-1/+1
| | | | | | | | | | | | | | | | | | Echo is a command in the Windows command interpreter
* | | | | | Merge pull request #9096 from MSeifert04/inplace_keywordparamEric Wieser2017-05-113-10/+13
|\ \ \ \ \ \ | |/ / / / / |/| | | | | ENH: Allow inplace also as keyword parameter for ndarray.byteswap
| * | | | | ENH: Allow inplace as keyword parameter for byteswapMichael Seifert2017-05-113-10/+13
| | | | | |
* | | | | | Merge pull request #9083 from eric-wieser/fix-duplicate-order-errorahaldane2017-05-102-5/+14
|\ \ \ \ \ \ | |/ / / / / |/| | | | | MAINT: Improve error message from sorting with duplicate key
| * | | | | MAINT: Improve error message from sorting with duplicate keyEric Wieser2017-05-102-5/+14
| | | | | | | | | | | | | | | | | | | | | | | | Fixes #9082
* | | | | | Merge pull request #9092 from mhvk/array-ufunc-ref-count-bugCharles Harris2017-05-102-16/+23
|\ \ \ \ \ \ | | | | | | | | | | | | | | BUG remove memory leak in array ufunc override.
| * | | | | | BUG remove memory leak in array ufunc override.Marten van Kerkwijk2017-05-102-16/+23
| | | | | | |
* | | | | | | Merge pull request #9089 from shoyer/array-ufunc-error-messageCharles Harris2017-05-102-7/+8
|\ \ \ \ \ \ \ | |/ / / / / / |/| | / / / / | | |/ / / / | |/| | | | MAINT: refine error message for __array_ufunc__ not implemented
| * | | | | MAINT: refine error message for __array_ufunc__ not implementedStephan Hoyer2017-05-102-7/+8
| | |/ / / | |/| | | | | | | | | | | | | xref GH9079
* | | | | MAINT: Update master branch for 1.14.0 development.Charles Harris2017-05-103-0/+4
|/ / / / | | | | | | | | | | | | Post 1.13.x branch housekeeping.
* | | | Merge pull request #9087 from eric-wieser/fix-ufunc-resolutionJulian Taylor2017-05-1010-122/+175
|\ \ \ \ | | | | | | | | | | BUG: __array_ufunc__ should always be looked up on the type, never the instance