summaryrefslogtreecommitdiff
path: root/numpy
Commit message (Collapse)AuthorAgeFilesLines
* MAINT: Update tests for _ctypes classQiming Sun2019-09-151-14/+0
|
* MAINT: Remove _get_void_ptr functionQiming Sun2019-09-151-17/+4
|
* TEST: Add tests for .ctypes.data_asQiming Sun2019-09-141-0/+29
|
* BUG: typo in _ctypes classQiming Sun2019-09-101-1/+1
|
* BUG: _ctypes._as_parameter_ did not hold the array objectQiming Sun2019-09-101-1/+1
|
* BUG: Fix _ctypes class cirular reference. (#13808)Qiming Sun2019-09-101-3/+4
| | | | | In _ctypes class, ctypes.cast() was called twice. It causes circular reference for _ctypes._data due to the CPython bug https://bugs.python.org/issue12836.
* Merge pull request #14459 from eric-wieser/MemoryError-sizeAllan Haldane2019-09-092-2/+92
|\ | | | | ENH: Print the amount of memory that would be used by a failed allocation
| * ENH: Print the amount of memory that would be used by a failed allocationEric Wieser2019-09-082-2/+92
| |
* | Merge pull request #14458 from ahaldane/fix_hypergeometric_longEric Wieser2019-09-081-3/+3
|\ \ | | | | | | BUG: random.hypergeometic assumes npy_long is npy_int64, hangs ppc64
| * | BUG: random.hypergeometic assumes npy_long is npy_int64, hung ppc64Allan Haldane2019-09-091-3/+3
| | | | | | | | | | | | Fixes #14457
* | | Merge pull request #14349 from maxwell-aladago/assert_array_compareMatti Picus2019-09-092-7/+28
|\ \ \ | |/ / |/| | MAINT: Fix bloated mismatch error percentage in array comparisons.
| * | a separate test for scalars base on review commentsMaxwell Aladago2019-09-081-1/+11
| | |
| * | adding testsMaxwell Aladago2019-09-061-0/+10
| | |
| * | assert_array_compareMaxwell Aladago2019-09-061-7/+8
| | |
* | | Merge pull request #14393 from ahaldane/fix_fieldless_view_itemsizeMatti Picus2019-09-085-9/+54
|\ \ \ | | | | | | | | BUG: view with fieldless dtype should raise if itemsize != 0
| * | | BUG: Fix fieldless comparison broadcastingAllan Haldane2019-09-052-6/+16
| | | | | | | | | | | | | | | | Fixes #13438
| * | | BUG: Fix comparison of fieldless structured arraysAllan Haldane2019-08-312-5/+13
| | | |
| * | | BUG: PyDataType_ISUNSIZED should be False for structured typesAllan Haldane2019-08-314-4/+25
| | | |
| * | | BUG: view with fieldless dtype should raise if itemsize != 0Allan Haldane2019-08-282-1/+7
| | | | | | | | | | | | | | | | Fixes #14344
* | | | MAINT: clean up numpy/fft/info.pyRalf Gommers2019-09-072-190/+185
| | | |
* | | | MAINT: move pocketfft .py/.so to `_pocketfft`Ralf Gommers2019-09-074-8/+8
| | | | | | | | | | | | | | | | These aren't public, and should have been added with underscores.
* | | | Merge pull request #14360 from rgommers/random-docsRalf Gommers2019-09-071-2/+2
|\ \ \ \ | | | | | | | | | | DOC: random: fix doc linking, was referencing private submodules.
| * | | | DOC: fix doc linking, was referencing private submodules.Ralf Gommers2019-08-251-2/+2
| | | | | | | | | | | | | | | | | | | | Closes gh-14359
* | | | | Merge pull request #14355 from qwhelan/pytesttesterRalf Gommers2019-09-071-3/+8
|\ \ \ \ \ | |_|_|/ / |/| | | | DOC: clarify that PytestTester is non-public
| * | | | DOC: clarify that PytestTester is non-publicChristopher Whelan2019-08-241-3/+8
| |/ / /
* | | | Merge pull request #13610 from eric-wieser/argwhereSebastian Berg2019-09-063-9/+43
|\ \ \ \ | | | | | | | | | | ENH: Always produce a consistent shape in the result of `argwhere`
| * | | | ENH: Always produce a consistent shape in the result of `argwhere`Eric Wieser2019-09-053-9/+43
| | |_|/ | |/| | | | | | | | | | | | | | | | | | Previously this would return 1d indices even though the array is zero-d. Note that using atleast1d inside numeric required an import change to avoid a circular import.
* | | | Merge pull request #14426 from espdev/see-also-printoptionsMatti Picus2019-09-061-2/+2
|\ \ \ \ | | | | | | | | | | DOC: add the reference to 'printoptions'
| * | | | DOC: add the reference to 'printoptions'Eugene Prilepin2019-09-051-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We add the reference to 'printoptions' context manager in "See Also" section in 'set_printoptions' and 'get_printoptions' functions. These changes improve the documentation and make it easy to search.
* | | | | BUG: Fix ZeroDivisionError for zero length arrays in pocketfft. (#14279)mreineck2019-09-051-13/+19
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * introduce inv_fct to avoid divisions by zero * add comment describing the purpose of inv_fct * inv_fct -> inv_norm
* | | | | Merge pull request #14429 from seberg/exception-moduleCharles Harris2019-09-051-0/+1
|\ \ \ \ \ | | | | | | | | | | | | BUG: Do not show Override module in private error classes.
| * | | | | ENH: Override module in private error classes displayed as baseSebastian Berg2019-09-051-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | While IPython seems to not print the module information (or only prints qualname), python adds the full module, so it needs to be overridden to not be printed on error.
* | | | | | Merge pull request #14209 from lagru/fix-linear-rampCharles Harris2019-09-052-76/+41
|\ \ \ \ \ \ | | | | | | | | | | | | | | BUG: Fix uint-overflow if padding with linear_ramp and negative gain
| * | | | | | BUG: Replace _linear_ramp with linspaceLars Grueter2019-08-272-76/+41
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | linspace supports non-scalar values since version 1.16. This can replace the former _linear_ramp method. This removes a bug in the old implementation where certain edge and end values resulted in an integer underflow for unsigned dtypes (see gh-14191). Protect against this regression with a new test for all numeric dtypes.
* | | | | | | BUG: Fixed maximum relative error reporting in assert_allclose (gh-13802)CakeWithSteak2019-09-052-2/+16
| |_|/ / / / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fixed maximum relative error reporting in assert_allclose: In cases where the two arrays have zeros at the same positions it will no longer report nan as the max relative error
* | | | | | Merge pull request #14387 from mattip/dtype-overflowCharles Harris2019-09-042-6/+19
|\ \ \ \ \ \ | |_|/ / / / |/| | | | | BUG: test, fix regression in converting to ctypes
| * | | | | Apply suggestions from code reviewMatti Picus2019-09-042-3/+4
| | | | | | | | | | | | | | | | | | | | | | | | Co-Authored-By: Eric Wieser <wieser.eric@gmail.com>
| * | | | | BUG: skip new test on windows, 32-bitmattip2019-08-281-0/+2
| | | | | |
| * | | | | BUG: test, fix regression in converting to ctypesmattip2019-08-282-6/+16
| | |_|_|/ | |/| | |
* | | | | Merge pull request #14395 from rgommers/doc-subclCharles Harris2019-09-041-1/+2
|\ \ \ \ \ | | | | | | | | | | | | DOC: fix issue with __new__ usage in subclassing doc.
| * | | | | DOC: add comment to explain `object.__new__`.Ralf Gommers2019-08-281-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | [ci skip]
| * | | | | DOC: fix issue with __new__ usage in subclassing doc.Ralf Gommers2019-08-281-1/+1
| |/ / / / | | | | | | | | | | | | | | | Closes gh-14386.
* | | | | Merge pull request #14417 from hameerabbasi/lexsort-rsort-fixCharles Harris2019-09-042-9/+17
|\ \ \ \ \ | | | | | | | | | | | | BUG: Fix aradixsort indirect indexing.
| * | | | | BUG: Fix lexsort + radix sort.Hameer Abbasi2019-09-042-9/+17
| | |_|/ / | |/| | |
* | | | | Merge pull request #12284 from mattip/numpy.pxdSebastian Berg2019-09-041-0/+978
|\ \ \ \ \ | | | | | | | | | | | | ENH: supply our version of numpy.pxd, requires cython>=0.29
| * | | | | ENH: supply our version of numpy.pxd, adjust as neededmattip2019-09-041-0/+978
| |/ / / /
* | | | | Merge pull request #14416 from WarrenWeckesser/bug-attribute-errorMatti Picus2019-09-041-3/+2
|\ \ \ \ \ | | | | | | | | | | | | BUG: Fix format statement associated with AttributeError.
| * | | | | BUG: Fix format statement associated with AttributeError.Warren Weckesser2019-09-041-3/+2
| |/ / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Before this fix, a reference such as `numpy.wxyz` produced an incorrect error message because of the invalid format specifiers in the error message string: >>> import numpy >>> numpy.wxyz Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/.../numpy/__init__.py", line 206, in __getattr__ "module %s has no attribute $s".format(__name__, attr)) AttributeError: module %s has no attribute $s After the fix: >>> import numpy >>> numpy.wxyz Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/.../numpy/__init__.py", line 206, in __getattr__ "{!r}".format(__name__, attr)) AttributeError: module 'numpy' has no attribute 'wxyz'
* | | | | Merge pull request #14352 from eric-wieser/simplify-polyvander-int-deprecationMatti Picus2019-09-041-8/+2
|\ \ \ \ \ | |/ / / / |/| | | | MAINT: Remove redundant deprecation checks
| * | | | MAINT: Remove redundant deprecation checksEric Wieser2019-08-241-8/+2
| | | | | | | | | | | | | | | | | | | | These deprecations already happen inside `vanderf`, so don't need to be repeated here.