summaryrefslogtreecommitdiff
path: root/numpy/core
Commit message (Collapse)AuthorAgeFilesLines
* WIP, BUG: reorder operations for VS2015mattip2018-12-102-7/+7
|
* Merge pull request #12494 from mattip/disallow-dgemmCharles Harris2018-12-073-2/+38
|\ | | | | BUG: test, fix matmul, dot for vector array with stride[i]=0
| * STY, TST: fix formatting and add tests for other dtypes, unaligned dataCharles Harris2018-12-072-3/+19
| |
| * BUG: test, fix matmul, dot for vector array with stride[i]=0mattip2018-12-053-2/+22
| |
* | Merge pull request #12388 from mhvk/linspace-allow-arrayCharles Harris2018-12-062-44/+127
|\ \ | | | | | | ENH: allow arrays for start and stop in {lin,log,geom}space
| * | DOC: Note the version in which we start supporting array_like start, stopMarten van Kerkwijk2018-12-061-6/+15
| | |
| * | ENH: allow user choice of sample axis in {lin,log,geom}space.Marten van Kerkwijk2018-12-052-19/+47
| | |
| * | ENH: Allow {lin,log,geom}space start and stop to be arrays.Marten van Kerkwijk2018-12-052-34/+82
| | |
| * | TST,BUG: fix two tests that were setup incorrectly.Marten van Kerkwijk2018-12-041-3/+1
| |/ | | | | | | And which failed with the change to linspace.
* | MAINT: Review F401,F841,F842 flake8 errors (unused variables and imports) ↵Roman Yurchak2018-12-0617-38/+28
| | | | | | | | | | | | | | | | | | | | | | | | (#12448) * Review F401,F841,F842 flake8 errors (unused variables, imports) * Review comments * More tests in test_installed_npymath_ini * Review comments
* | BUG: Fix `/` that should be `//`.Charles Harris2018-12-061-1/+1
| | | | | | | | Seems this old style division was missed when going to Python3 compatibility.
* | BUG: fix records.fromfile fails to read data >4 GBcgohlke2018-12-051-2/+2
|/ | | Use 64-bit integer accumulator for calculating the product of array shapes on 64-bit systems. Fixes #12442.
* Merge pull request #12219 from mattip/matmul-as-ufunc2Eric Wieser2018-12-0417-375/+793
|\ | | | | ENH: make matmul into a ufunc
| * DOC: add a comment detailing the output ufunc flag choicesmattip2018-12-031-0/+12
| |
| * ENH: corrections and fixes from reviewmattip2018-12-0110-287/+242
| |
| * ENH: make matmul into a ufuncmattip2018-11-2518-361/+812
| | | | | | | | MAINT: fixes from review
* | Merge pull request #12353 from mattip/check-thresholdCharles Harris2018-12-042-1/+10
|\ \ | | | | | | BUG: test, fix for threshold='nan'
| * | BUG: test, fix for threshold='nan'mattip2018-12-012-1/+10
| | |
* | | Merge pull request #12328 from mhvk/ndarray_array_function_allow_subclassesStephan Hoyer2018-12-023-45/+66
|\ \ \ | |/ / |/| | MAINT: Allow subclasses in `ndarray.__array_function__`.
| * | MAINT: Allow subclasses in ndarray.__array_function__.Marten van Kerkwijk2018-12-023-45/+66
| | | | | | | | | | | | The Liskov substitution principle suggests it should.
* | | Merge pull request #12470 from shoyer/less-multiarray-indirectionCharles Harris2018-12-013-199/+163
|\ \ \ | | | | | | | | MAINT: remove wrapper functions from numpy.core.multiarray
| * | | STY: Restyle some multiline comments. [ci skip]Charles Harris2018-12-011-2/+4
| | | |
| * | | MAINT: reformat comment in CStephan Hoyer2018-12-011-2/+4
| | | |
| * | | DOC: add docs_from_dispatcher to docstringStephan Hoyer2018-12-012-3/+7
| | | |
| * | | MAINT: remove wrapper functions from numpy.core.multiarrayStephan Hoyer2018-12-013-199/+155
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The original motivation for the style of these wrapper functions, introduced in gh-12175, was to preserve introspection. But it turns out NumPy's functions defined in C don't support introspection anyways, so the extra wrapper functions are entirely pointless. This version reverts the additional wrapper functions, which put default arguments in two places and introduced slow-down due to the overhead of another function call. I've retained docstrings in multiarray.py, since it's definitely more readable to keep docstrings and dispatchers together rather than leaving docstrings in _add_newdocs.py. One bonus of this approach is that dispatcher functions have the same name as their implementations, so `np.concatenate(unknown=True)` gives an error message mentioning "concatenate" rather than "_concatenate_dispatcher": `TypeError: concatenate() got an unexpected keyword argument 'unknown'`
* | | | Merge pull request #12471 from shoyer/linspace-overridesStephan Hoyer2018-12-011-5/+24
|\ \ \ \ | |_|/ / |/| | | ENH: override support for np.linspace and friends
| * | | ENH: override support for np.linspace and friendsStephan Hoyer2018-12-011-5/+24
| |/ / | | | | | | | | | Fixes gh-12379
* | | Merge pull request #12447 from ahaldane/unrevert_multifield_viewCharles Harris2018-12-015-133/+20
|\ \ \ | | | | | | | | ENH: add back the multifield copy->view change
| * | | ENH: add back the multifield copy->view changeAllan Haldane2018-11-265-133/+20
| | | | | | | | | | | | | | | | | | | | Fixes #10409 Closes #11530
* | | | Merge pull request #12443 from rth/set-litteralEric Wieser2018-12-016-10/+10
|\ \ \ \ | | | | | | | | | | MAINT Use set litterals
| * | | | Address review commentsRoman Yurchak2018-11-241-4/+4
| | | | |
| * | | | Use set litteralsRoman Yurchak2018-11-246-12/+12
| | | | |
* | | | | MAINT: Use list and dict comprehension when possible (#12445)Roman Yurchak2018-12-019-98/+34
| |_|/ / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Use list comprehension * More list comprehension migration * Revert key copying in dict * A few more fixes * More reverts * Use dict comprehension * Fix dict comprehension * Address review comments * More review comments * Fix for empty unpacking of zip(* * Revert zip(* unpacking altogether * Fix dict copying * More simplifications
* | | | BUG: disallow setting flag to writeable if isinstance(a.base, (str, bytes))mattip2018-11-262-15/+40
| |_|/ |/| |
* | | Merge pull request #12437 from mattip/refactor-datetime-metadataEric Wieser2018-11-251-61/+55
|\ \ \ | |_|/ |/| | MAINT: refactor datetime.c_metadata creation
| * | MAINT: refactor datetime.c_metadata creationmattip2018-11-251-61/+55
| | |
* | | Merge pull request #12419 from timfel/fix-fill-funcsCharles Harris2018-11-242-9/+18
|\ \ \ | |_|/ |/| | Fix PyArray_FillFunc function definitions
| * | ENH: Fix PyArray_FillFunc definitions to return an int as per typedefTim Felgentreff2018-11-192-9/+18
| | |
* | | Merge pull request #12439 from mattip/visible-to-invisibleCharles Harris2018-11-232-2/+9
|\ \ \ | | | | | | | | BUG: test, fix NPY_VISIBILITY_HIDDEN on gcc, which becomes NPY_NO_EXPORT
| * | | BUG: test, fix NPY_VISIBILITY_HIDDEN on gcc, which becomes NPY_NO_EXPORTmattip2018-11-222-2/+9
| | |/ | |/|
* | | BUG: don't override casting errors with matmul or innerStephan Hoyer2018-11-232-11/+19
| | |
* | | BUG: don't override original errors when casting inside np.dot() failsStephan Hoyer2018-11-232-1/+13
|/ / | | | | | | This makes things harder to debug.
* | BUG/ENH: Fix use of ndpointer in return valuesEric Wieser2018-11-211-0/+13
| | | | | | | | | | | | | | | | | | | | | | This: * fixes a regression in 1.15, where it became impossible to set the return value of a cdll function to an ndpointer. * removes ndpointer.__array_interface__, which was being ignored anyway in favor of the PEP3118 buffer protocol * adds `ndpointer.contents` to recover the lost functionality, while staying in line with the ctypes behavior * removes another instance of `descr`, which enables overlapping fields to be returned from C functions (such as unions). * Fixes a long-term bug where using ndpointer as a return type without specifying both type and dtype would produce an object array containing a single `ndpointer`. Now the ndpointer is returned directly. This relates to gh-12421, and likely fixes toinsson/pyrealsense#82
* | Merge pull request #12286 from mattip/no-api-warnCharles Harris2018-11-191-0/+3
|\ \ | | | | | | ENH: Do not emit compiler warning if forcing old API
| * | ENH: do not emit compilation warning if using old APImattip2018-11-141-0/+3
| | |
* | | Merge pull request #12417 from eric-wieser/ctypes-bad-errorsMatti Picus2018-11-192-7/+10
|\ \ \ | |_|/ |/| | BUG: Fix regression on np.dtype(ctypes.c_void_p)
| * | BUG: Fix regression on np.dtype(ctypes.c_void_p)Eric Wieser2018-11-192-3/+6
| | | | | | | | | | | | | | | | | | Historically, this always returned np.uintp - we should continue to do so, even though other pointer types have never been supported Fixes gh-12416
| * | MAINT: rename helper functions for consistencyEric Wieser2018-11-181-4/+4
| | |
* | | Merge pull request #12414 from charris/fix-cversionEric Wieser2018-11-182-6/+6
|\ \ \ | |/ / |/| | MAINT: Update cversion hash.
| * | MAINT: Update cversion hash.Charles Harris2018-11-182-6/+6
| | | | | | | | | | | | | | | | | | A new function was added to the ufunc_funcs_api. Closes #12412.