summaryrefslogtreecommitdiff
path: root/numpy
Commit message (Collapse)AuthorAgeFilesLines
* MAINT: Prepare master for 1.17.0 development.Charles Harris2018-12-082-0/+4
| | | | | | | | | | | | - Create 1.17.0-notes - Update index.rst for new notes - Update pavement.py - Update setup.py - Remove Python 2.7 and 3.4 from CI testing. - Add `# cython: language_level=3` to `*.pxd`, `*.pyx` files. Note that this removes support for both Python2.7 and Python3.4 in setup.py.
* 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-063-48/+131
|\ \ | | | | | | 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-042-7/+5
| | | | | | | | | | | | And which failed with the change to linspace.
* | | MAINT: Review F401,F841,F842 flake8 errors (unused variables and imports) ↵Roman Yurchak2018-12-0653-106/+57
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | (#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.
* | ENH: implement matmul on NDArrayOperatorsMixin (#12488)Stephan Hoyer2018-12-052-3/+13
|/ | | | | | * ENH: implement matmul on NDArrayOperatorsMixin * MAINT: remove unnecessary pytest import
* 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
| | |
* | | DOC: fix example for __call__. See #12451Edgar Giovanni Lepe2018-12-021-11/+5
| | |
* | | 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-017-179/+92
|\ \ \ | | | | | | | | ENH: add back the multifield copy->view change
| * | | ENH: add back the multifield copy->view changeAllan Haldane2018-11-267-179/+92
| | | | | | | | | | | | | | | | | | | | Fixes #10409 Closes #11530
* | | | Merge pull request #12443 from rth/set-litteralEric Wieser2018-12-0112-19/+19
|\ \ \ \ | | | | | | | | | | MAINT Use set litterals
| * | | | Address review commentsRoman Yurchak2018-11-241-4/+4
| | | | |
| * | | | Use set litteralsRoman Yurchak2018-11-2412-21/+21
| | | | |
* | | | | MAINT: Use list and dict comprehension when possible (#12445)Roman Yurchak2018-12-0117-136/+52
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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: IndexError for empty list on structured MaskedArray.Marten van Kerkwijk2018-11-302-3/+8
| |_|/ / |/| | | | | | | | | | | | | | | This should give an empty result, not an error. The problem was that the empty list was interpreted as a list of strings.
* | | | Merge pull request #12446 from ahaldane/recfunctions_fixupsCharles Harris2018-11-292-13/+41
|\ \ \ \ | | | | | | | | | | MAINT: Fixups to new functions in np.lib.recfunctions
| * | | | MAINT: Fixups to new functions in np.lib.recfunctionsAllan Haldane2018-11-262-13/+41
| | | | |
* | | | | Merge pull request #11197 from wummo/correct_covariance_scalingMarten van Kerkwijk2018-11-272-21/+59
|\ \ \ \ \ | | | | | | | | | | | | BUG/ENH: Removed non-standard scaling of the covariance matrix and added option to disable scaling completely.
| * | | | | Removed non-standard scaling of the covariance matrix and added option to ↵Andreas Nussbaumer2018-11-212-21/+59
| | | | | | | | | | | | | | | | | | | | | | | | disable scaling completely.
* | | | | | BUG: disallow setting flag to writeable if isinstance(a.base, (str, bytes))mattip2018-11-262-15/+40
| |/ / / / |/| | | |
* | | | | Merge pull request #12408 from ahaldane/multifield_maCharles Harris2018-11-252-6/+19
|\ \ \ \ \ | |_|_|_|/ |/| | | | BUG: multifield-view of MaskedArray gets bad fill_value
| * | | | BUG: multifield-view of MaskedArray gets bad fill_valueAllan Haldane2018-11-192-6/+19
| | | | | | | | | | | | | | | | | | | | Fixes #10483
* | | | | 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 #11526 from ahaldane/add_struct_helper_funcs_redoCharles Harris2018-11-233-2/+394
|\ \ \ \ \ | | | | | | | | | | | | ENH: add multi-field assignment helpers in np.lib.recfunctions
| * | | | | MAINT: Add new recfunctions to numpy function APIAllan Haldane2018-11-231-0/+23
| | | | | |
| * | | | | ENH: Fixups to multi-field assignment helpersAllan Haldane2018-11-222-42/+72
| | | | | |