summaryrefslogtreecommitdiff
path: root/numpy/core
Commit message (Collapse)AuthorAgeFilesLines
* Merge pull request #11432 from mattip/refactor-new_array_for_sumMarten van Kerkwijk2018-06-304-196/+120
|\ | | | | MAINT: Refactor differences between cblas_matrixproduct and PyArray_MatrixProduct2
| * MAINT: refactor duplicate code into 'common.c'mattip2018-06-294-196/+120
| |
* | Merge pull request #11440 from jackvreeken/fix-interp-for-nan-infEric Wieser2018-06-291-0/+8
|\ \ | |/ |/| BUG: fix interpolation with inf and NaN present
| * BUG: fix interpolation with inf and NaN presentJack Vreeken2018-06-291-0/+8
| | | | | | | | | | | | | | | | | | Values like NaN and inf would result in wrong interpolated values on exactly matching sampling points. To produce the correct behavior, we add an additional check to avoid interpolation when handling such a point. Closes #11439
* | Merge pull request #11406 from mattip/einsum-out-is-resCharles Harris2018-06-292-18/+15
|\ \ | | | | | | BUG: ensure ret is out in einsum
| * | MAINT: cleanup ret assignmentmattip2018-06-271-20/+7
| | |
| * | check for unlikely error in Assign_Zeromattip2018-06-241-1/+3
| | |
| * | BUG: ensure ret is out in einsummattip2018-06-212-1/+9
| | |
* | | Merge pull request #11425 from eric-wieser/where-nonzero-docsMarten van Kerkwijk2018-06-291-7/+14
|\ \ \ | | | | | | | | DOC: Clear up confusion between np.where(cond) and np.where(cond, x, y)
| * | | DOC: Clear up confusion between np.where(cond) and np.where(cond, x, y)Eric Wieser2018-06-291-7/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Eliminates all mentions of `np.where(cond)`, instead pointing the reader to np.nonzero. Also changes some example numbers to avoid collisions, making them easier to follow. Some minor doc improvements for np.ma.where too.
* | | | MAINT: Split off getting overrides and checking for them.Marten van Kerkwijk2018-06-283-76/+144
| | | | | | | | | | | | | | | | | | | | Code was getting too convoluted and both can be optimized in different ways.
* | | | MAINT: Ensure __array_ufunc__ on given class is only called once.Marten van Kerkwijk2018-06-282-9/+69
| |_|/ |/| | | | | | | | | | | | | | | | | Overall, it likely doesn't matter much for performance, but it is more logical and more consistent with what python does: reverse operators are not called if the forward one of a given class already returned NotImplemented.
* | | DOC: Update einsum docs (#11234)attack682018-06-271-62/+161
|/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Einsum docs improvements. * DOC: add information to numpy.core.einsumfunc * DOC: add information to numpy.core.einsumfunc * DOC: add information to numpy.core.einsumfunc * DOC: add information to numpy.core.einsumfunc * DOC: remove 'numpy.core','c_einsum' section from 'add_newdocs.py' * DOC: make :py:func links to all internal functions. * DOC: make :py:func links to all internal functions (minor corrections) * DOC: place `add_newdoc('numpy.core.multiarray','c_einsum'`,...) in file. * DOC: minor requested corrections * DOC: suggested optimize argument Example cases * DOC: copy amendments to second docstring location in add_newdocs.py * DOC: more descriptive text * DOC: required correction to specify a default argument. * DOC: minor presentation fix for example display in einsumfunc.py * DOC: amend c_einsum documentation version, add note about dual documentation
* | BUG: Ensure comparisons on scalar strings pass without warning.Marten van Kerkwijk2018-06-213-9/+22
|/
* Merge pull request #11282 from mhvk/array-comparison-not-implementeduntagged-65f99747b229ae7de4ccMarten van Kerkwijk2018-06-213-223/+148
|\ | | | | MAINT: move comparison operator special-handling out of ufunc parsing.
| * MAINT: move failure code to its own function.Marten van Kerkwijk2018-06-191-85/+110
| |
| * MAINT: move comparison operator special-handling out of ufunc parsing.Marten van Kerkwijk2018-06-183-223/+123
| | | | | | | | | | | | | | | | The argument parsing for ufuncs contains special logic to enable returning NotImplemented for comparison functions. The ufuncs, however, should not have to know whether they were called via a python comparison operator, so this PR moves the logic to the operators, checking after ufunc failed whether a NotImplemented should be returned.
* | Merge pull request #11340 from eric-wieser/fix-sctypeDict-clongdoubleMarten van Kerkwijk2018-06-212-22/+34
|\ \ | | | | | | BUG: sctypeDict['f8'] randomly points to double or longdouble depending on non-deterministic dictionary iteration order
| * | BUG: f8 randomly points to double or longdouble depending on ↵Eric Wieser2018-06-142-20/+30
| | | | | | | | | | | | non-deterministic dictionary iteration order
| * | MAINT: Replace ifs with assertions, since those conditions are never hitEric Wieser2018-06-141-24/+26
| | |
* | | Merge pull request #11390 from charris/update-npyconfigRalf Gommers2018-06-211-0/+1
|\ \ \ | | | | | | | | REL: Update numpyconfig.h for 1.15.
| * | | REL: Update numpyconfig.h for 1.15.Charles Harris2018-06-201-0/+1
| | |/ | |/|
* | | Merge pull request #11385 from toslunar/enh-scalar-squeezeCharles Harris2018-06-202-12/+18
|\ \ \ | | | | | | | | Make scalar.squeeze accept axis arg
| * | | Add scalar squeeze testsToshiki Kataoka2018-06-201-0/+16
| | | |
| * | | Make scalar.squeeze accept axis argToshiki Kataoka2018-06-201-12/+2
| | | |
* | | | Merge pull request #11376 from mattip/remove-npyiter_closeCharles Harris2018-06-2011-254/+84
|\ \ \ \ | |/ / / |/| | | ENH: Remove NpyIter_Close
| * | | fixes from reviewmattip2018-06-194-9/+8
| | | |
| * | | ENH: Remove NpyIter_Closemattip2018-06-1811-251/+82
| |/ /
* | | MAINT: fixed typo in mapiter_trivial_@name@ descriptionMinkyu Lee2018-06-191-1/+1
| | |
* | | BUG: changed hardcoded axis to 0 for checking indicesMinkyu Lee2018-06-191-2/+2
|/ /
* | Merge pull request #11366 from eric-wieser/bad-warningCharles Harris2018-06-172-13/+19
|\ \ | | | | | | BUG/TST: String indexing should just fail, not emit a futurewarning
| * | TST: Don't allow test_indexing to swallow all exceptionsEric Wieser2018-06-171-12/+17
| | | | | | | | | | | | This requires tweaking the pure-python emulation to throw the same type of exception
| * | BUG: Don't emit a spurious warning for float_arr['str'], when it will just ↵Eric Wieser2018-06-171-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | error anyway There's no need to convert `a['test']` to `a['t', 'e', 's', 't']` before erroring Fixes #11364
* | | BUG: add missing NpyIter_Close in einsummattip2018-06-171-0/+2
| | |
* | | HTTP -> HTTPS, and other linkrot fixesMike Toews2018-06-168-21/+22
| | |
* | | BUG: decref in failure path; replace PyObject_Type by Py_TYPEMarten van Kerkwijk2018-06-142-11/+14
| |/ |/| | | | | | | PyObject_Type increases the reference count, which was not taken into account.
* | MAINT: Make the keys of typeinfo lowercase once, not repeatedlyEric Wieser2018-06-131-10/+9
| |
* | MAINT: Filter out the real type info from typeinfo once, not repeatedlyEric Wieser2018-06-131-24/+29
| |
* | MAINT: Extract code present in both branchesEric Wieser2018-06-131-6/+4
| |
* | MAINT: Simplify skipping of integer types in _add_aliasesEric Wieser2018-06-131-10/+15
| |
* | MAINT: Use a set instead of a dictionaryEric Wieser2018-06-131-4/+2
| |
* | MAINT: Clarify intent of integer-naming codeEric Wieser2018-06-131-1/+7
| |
* | MAINT: Don't use dtype strings when the dtypes themselves can be usedEric Wieser2018-06-131-3/+3
|/
* Merge pull request #11286 from mattip/einsum-overlapCharles Harris2018-06-122-12/+27
|\ | | | | BUG: einsum needs to check overlap on an out argument
| * BUG: einsum needs to check overlap on an out argumentmattip2018-06-112-12/+27
| |
* | MAINT: remove unused "npy_import"Allan Haldane2018-06-121-14/+0
| |
* | Merge pull request #11307 from pgunn/master_fix_earlier_diffCharles Harris2018-06-112-0/+6
|\ \ | |/ |/| BUG: Fix memmap regression when shape=None
| * add test from issuemattip2018-06-111-0/+5
| |
| * Restore a line that I accidentally deleted rather than reverted in earlier diffPat Gunn2018-06-111-0/+1
| |
* | MAINT: push back multifield copy->view changes to 1.16Allan Haldane2018-06-116-14/+139
|/