summaryrefslogtreecommitdiff
path: root/numpy
Commit message (Collapse)AuthorAgeFilesLines
* Merge pull request #12257 from charris/fix-ma-compare-fill_valueCharles Harris2018-10-262-10/+163
|\ | | | | BUG: Fix fill value in masked array '==' and '!=' ops.
| * TST: Add masked array tests for '==' and '!='.Charles Harris2018-10-241-5/+145
| | | | | | | | | | Cover the string and numeric types. Structured types were already covered.
| * BUG: Fix fill value in masked array '==' and '!=' ops.Charles Harris2018-10-241-5/+18
| | | | | | | | | | | | | | The type of the fill_value needs to be `bool_` in order to match the result type of `==` and `!=`. Closes #12248.
* | Merge pull request #12254 from eric-wieser/dtype-from-ctypes-typeCharles Harris2018-10-269-82/+213
|\ \ | | | | | | MAINT: Move ctype -> dtype conversion to python
| * | BLD: Add missing npy_import.h to common_depsEric Wieser2018-10-251-0/+1
| | | | | | | | | | | | Without this, the build will not rerun due to changes in this file
| * | MAINT/BUG: Move ctype -> dtype conversion to python, fix issuesEric Wieser2018-10-255-69/+157
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This comes with a number of changes: * Propagating the error if parsing a ctypes object goes wrong, rather than silencing it and trying more things. * Rejecting ctypes bitfields, which were incorrectly treated as subarrays. * Rejecting ctypes Unions, which were previously treated as if they were structs * Rejecting ctypes pointers, which were silently converted into their dereferenced types. This was particularly dangerous behavior when parsing structs with nested pointers, where swapping out the type changes the struct layout! * No longer support ctypes duck-types, which includes... * No longer supporting a `_fields_` attribute on `np.void` subclasses. This was a bug due to a poorly-shared code-path between void and ctypes types. The upshot is it should be easier to fix future problems in parsing ctypes types.
| * | MAINT: Extract `_is_from_ctypes` to a header so that it can be sharedEric Wieser2018-10-254-13/+55
| | |
* | | BUG: Revert linspace import for concatenation funcs (#12265)James Bourbeau2018-10-262-3/+7
| | | | | | | | | BUG: test and fix import linspace in index_tricks
* | | MAINT: fix block dispatcher testStephan Hoyer2018-10-251-12/+13
| | |
* | | Merge branch 'master' into einsum-dispatchStephan Hoyer2018-10-2564-1516/+3299
|\ \ \
| * \ \ Merge pull request #12251 from shoyer/array-function-error-msgAllan Haldane2018-10-2522-31/+136
| |\ \ \ | | |/ / | |/| | MAINT: improved error message when no __array_function__ implementation found
| | * | TST: add tests for overrides on numpy functionsStephan Hoyer2018-10-251-0/+18
| | | |
| | * | MAINT: set preferred __module__ for numpy functionsStephan Hoyer2018-10-2320-26/+107
| | | |
| | * | MAINT: improved error message for no __array_function__ implementationsStephan Hoyer2018-10-232-5/+11
| | | |
| * | | Merge pull request #12240 from eric-wieser/fix-void-subtype-regressionAllan Haldane2018-10-232-1/+22
| |\ \ \ | | | | | | | | | | BUG: Fix crash in repr of void subclasses
| | * | | BUG: Fix crash in repr of void subclassesEric Wieser2018-10-212-1/+22
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fixes #12206, which was a regression introduced by #10602 Frankly I'd consider the results expected by `test_void_subclass_unsized` and `test_void_subclass_sized` undesirable, but they match the behavior in 1.12.x
| * | | | Merge pull request #11971 from hmaarrfk/block_single_concatenate_callAllan Haldane2018-10-232-45/+317
| |\ \ \ \ | | | | | | | | | | | | MAINT: Block algorithm with a single copy per call to `block`
| | * | | | TST: Add a test to ensure the memory order is respected when after a call to ↵Mark Harfouche2018-10-231-0/+30
| | | | | | | | | | | | | | | | | | | | | | | | ``np.block``.
| | * | | | TST: Add a test to block that checks for mismatched shapes in 2DMark Harfouche2018-10-201-0/+3
| | | | | |
| | * | | | TST: Block test: Trigger both code paths.Mark Harfouche2018-10-201-37/+89
| | | | | |
| | * | | | MAINT: provide an algorithm that blocks matrices with a single memory copy.Mark Harfouche2018-10-201-8/+195
| | | | | |
| * | | | | Merge pull request #12243 from liwt31/fix_misleading_msgMatti Picus2018-10-232-5/+22
| |\ \ \ \ \ | | | | | | | | | | | | | | BUG: Fix misleading assert message in assert_almost_equal #12200
| | * | | | | BUG: Fix misleading assert message in assert_almost_equal #12200wtli@Dirac2018-10-232-5/+22
| | | |_|_|/ | | |/| | | | | | | | | | | | | | | | | | | | | Fixes #12200 by making a copy of the matrix before NaN's are excluded. Add a test for it.
| * | | | | Merge pull request #12245 from tylerjereddy/test_sort_complexMatti Picus2018-10-231-0/+26
| |\ \ \ \ \ | | |_|_|_|/ | |/| | | | TST: tests for sort_complex()
| | * | | | TST: tests for sort_complex()Tyler Reddy2018-10-221-0/+26
| | |/ / /
| * | | | ENH: __array_function__ support for np.lib, part 2/2 (#12119)Stephan Hoyer2018-10-2212-31/+466
| |/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * ENH: __array_function__ support for np.lib, part 2 xref GH12028 np.lib.npyio through np.lib.ufunclike * Fix failures in numpy/core/tests/test_overrides.py * CLN: handle depreaction in dispatchers for np.lib.ufunclike * CLN: fewer dispatchers in lib.twodim_base * CLN: fewer dispatchers in lib.shape_base * CLN: more dispatcher consolidation * BUG: fix test failure * Use all method instead of function in assert_equal * DOC: indicate n is array_like in scimath.logn * MAINT: updates per review * MAINT: more conservative changes in assert_array_equal * MAINT: add back in comment * MAINT: casting tweaks in assert_array_equal * MAINT: fixes and tests for assert_array_equal on subclasses
| * | | Merge pull request #12224 from charris/fix-masked-fill_valueCharles Harris2018-10-212-6/+30
| |\ \ \ | | | | | | | | | | BUG: Fix MaskedArray fill_value type conversion.
| | * | | BUG: Fix MaskedArray fill_value type conversion.Charles Harris2018-10-202-6/+30
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fixes the regression introduced by #10211 where the masked array fill value type was not properly converted by astype. Closes #12070.
| * | | | Merge pull request #12222 from tylerjereddy/test_column_stackMatti Picus2018-10-211-0/+20
| |\ \ \ \ | | | | | | | | | | | | TST: unit tests for column_stack.
| | * | | | TST: unit tests for column_stack.Tyler Reddy2018-10-191-0/+20
| | | | | |
| * | | | | MAINT: Fix typo in commentwtli@Dirac2018-10-201-2/+2
| | |_|/ / | |/| | |
| * | | | Merge pull request #12209 from anntzer/get_build_archRalf Gommers2018-10-201-1/+6
| |\ \ \ \ | | |/ / / | |/| | | MAINT: delay import of distutils.msvccompiler to avoid warning on non-Windows.
| | * | | Delay import of distutils.msvccompiler to avoid warning on non-Windows.Antony Lee2018-10-181-1/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | *Importing* distutils.msvccompiler works on non-Windows systems, but triggers a pointless "warning" (using distutils' own logging system; "Can't read registry etc.") Delay the import so that other uses of distutils.misc_util are not affected. When running distutils commands, the verbosity is set by default to 1 (`self.verbose = 1` in distutils/dist.py) so the warning does get displayed. To trigger the warning, subclass e.g. build_ext, override its finalize_options method, import numpy.distutils.misc_util from there, and then pass the new build_ext as cmdclass to setuptools.setup(). Partially reverts 15f52f5.
| * | | | Merge pull request #11852 from tylerjereddy/issue_7617Stephan Hoyer2018-10-192-0/+25
| |\ \ \ \ | | | | | | | | | | | | BUG: timedelta64 now accepts NumPy ints
| | * | | | BUG: timedelta64 now accepts np ints.Tyler Reddy2018-09-012-0/+25
| | | | | |
| * | | | | Merge pull request #12175 from shoyer/nep-18-multiarrayMarten van Kerkwijk2018-10-193-998/+1117
| |\ \ \ \ \ | | | | | | | | | | | | | | ENH: __array_function__ for multiarray functions
| | * | | | | ENH: finish __array_function__ support for multiarrayStephan Hoyer2018-10-162-708/+800
| | | | | | |
| | * | | | | MAINT: fixup where_dispatcherStephan Hoyer2018-10-141-1/+1
| | | | | | |
| | * | | | | MAINT: fixup where signatureStephan Hoyer2018-10-141-3/+4
| | | | | | |
| | * | | | | WIP: __array_ufunc__ for multiarray functionsStephan Hoyer2018-10-143-290/+316
| | | | | | |
| * | | | | | DOC: Clarify the examples for argmax and argmin (#12211)tteichmann2018-10-191-11/+11
| | | | | | |
| * | | | | | Merge pull request #12154 from shoyer/chararray-dispatchMarten van Kerkwijk2018-10-191-0/+149
| |\ \ \ \ \ \ | | | | | | | | | | | | | | | | ENH: __array_function__ for np.core.defchararray
| | * | | | | | SpellingStephan Hoyer2018-10-121-2/+2
| | | | | | | |
| | * | | | | | ENH: __array_function__ for np.core.defchararrayStephan Hoyer2018-10-111-0/+149
| | | | | | | |
| * | | | | | | Merge pull request #11175 from mhvk/gufunc-signature-modification2Matti Picus2018-10-1910-200/+686
| |\ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | ENH: Generalized ufunc signature expansion for frozen and flexible dimensions
| | * | | | | | | MAINT: changes from reviewmattip2018-10-151-2/+2
| | | | | | | | |
| | * | | | | | | DOC: tweak docs from reviewmattip2018-10-121-1/+1
| | | | | | | | |
| | * | | | | | | MAINT: formatting, remove version, rework flagsmattip2018-10-114-49/+32
| | | | | | | | |
| | * | | | | | | ENH: increment and use NPY_API_VERSION in PyUFuncObject->versionmattip2018-10-075-54/+45
| | | | | | | | |
| | * | | | | | | MAINT: refactor inner loop in testmattip2018-09-163-46/+60
| | | | | | | | |