summaryrefslogtreecommitdiff
path: root/numpy
Commit message (Collapse)AuthorAgeFilesLines
* Merge pull request #16064 from keremh/fix-exception-raiseCharles Harris2020-04-254-10/+14
|\ | | | | ENH: Fix exception causes in four .py files
| * Update numpy/lib/shape_base.pyKerem HallaƧ2020-04-251-1/+3
| | | | | | Co-Authored-By: Ross Barnowski <rossbar@berkeley.edu>
| * Update numpy/lib/index_tricks.pyKerem HallaƧ2020-04-251-1/+3
| | | | | | Co-Authored-By: Ross Barnowski <rossbar@berkeley.edu>
| * ENH: Fix exception causes in four .py fileskeremh2020-04-244-10/+10
| |
* | BUG: fix AttributeError on accessing object in nested MaskedArray. (#15949)RenaRuirui2020-04-252-2/+31
| | | | | | | | | | | | * BUG: fix AttributeError on accessing object in nested MaskedArray Co-authored-by: Rena Xu <renaxu@Renas-MacBook-Pro.local> Co-authored-by: Eric Wieser <wieser.eric@gmail.com> Co-authored-by: vagrant <vagrant@vagrant.vm>
* | Merge pull request #16075 from rgommers/doc-choiceCharles Harris2020-04-251-0/+5
|\ \ | | | | | | DOC: add a note on sampling 2-D arrays to random.choice docstring
| * | DOC: add a note on sampling 2-D arrays to random.choice docstringRalf Gommers2020-04-251-0/+5
| |/ | | | | | | Addresses a comment on gh-10835.
* | DOC: Add missing bracket (gh-16051)Chunlin2020-04-2517-33/+33
|/ | | Add missing closing brackets, script to generate the list in the PR gh-16051.
* Added some chained exceptionsChris Holland2020-04-232-8/+8
|
* DOC: Add converters example to the loadtxt docstring (gh-16043)Warren Weckesser2020-04-231-4/+15
| | | Co-Authored-By: Ross Barnowski <rossbar@berkeley.edu>
* Merge pull request #15648 from xiegengxin/avx512-exp-float64Matti Picus2020-04-239-53/+651
|\ | | | | MAINT: AVX512 implementation with intrinsic for float64 input np.exp()
| * MAINT: Add test case of strides input & more commentsGengxin Xie2020-04-082-2/+13
| |
| * MAINT: Add test cases about +/- INF +/- NAN and overflowGengxin Xie2020-04-072-0/+7
| |
| * MAINT: Update more accuracy expected result of exp(x)Gengxin Xie2020-04-031-1/+1
| |
| * MAINT: Skip compiling AVX512_exp_DOUBLE when clang <= 10.0.0Gengxin Xie2020-04-031-0/+4
| |
| * MAINT: Add more accuracy test casesGengxin Xie2020-03-241-107/+271
| |
| * MANIT: Change some variables in AVX512F_exp_DOUBLEGengxin Xie2020-03-191-8/+8
| |
| * MANIT: Move lookup table and constants to new header fileGengxin Xie2020-03-183-132/+138
| |
| * MAINT: fix unicode errorGengxin Xie2020-03-161-1/+1
| |
| * MAINT: avx512 implementation with intrinsic for float64 np.exp()Gengxin Xie2020-03-047-6/+412
| |
* | BUG: Add _LARGE_FILES to def_macros[] when platform is AIX (gh-15938)Michael Felt2020-04-221-1/+5
| | | | | | AIX needs to be told to use large file support at all times. Fixes parts of gh-15801.
* | ENH: Fix exception causes in build_ext.pykeremh2020-04-221-2/+2
| |
* | BUG: missing 'f' prefix for fstringmattip2020-04-221-1/+1
| |
* | Merge pull request #16032 from keremh/fix-exception-raiseMatti Picus2020-04-221-2/+2
|\ \ | | | | | | ENH: Fix exception causes in build_clib.py
| * | ENH: Fix exception causes in build_clib.pykeremh2020-04-211-2/+2
| | |
* | | Merge pull request #16007 from eric-wieser/add-converter-testsMatti Picus2020-04-222-0/+253
|\ \ \ | | | | | | | | TST: Add tests for the conversion utilities
| * | | TST: Add tests for the conversion utilitiesEric Wieser2020-04-172-0/+253
| | | | | | | | | | | | | | | | | | | | | | | | This way we can test them without having to try and guess their behavior from the functions that use them. This also makes a bit more apparently the inconsistencies between them.
* | | | Merge pull request #16038 from rossbar/maint/poly_movetestMatti Picus2020-04-222-50/+49
|\ \ \ \ | | | | | | | | | | MAINT,TST: Move _repr_latex tests to test_printing.
| * | | | MAINT,TST: Move _repr_latex tests to test_printing.Ross Barnowski2020-04-212-50/+49
| | |/ / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Organizational refactoring - the tests for the polynomial _repr_latex method were originally defined in test_classes.py. Based on the descriptions of the various test files, it is a better fit in test_printing.py. Updated docstring to reflect that _repr_latex is used in Jupyter environments, not IPython terminals (by default).
* | | | BUG: Fix lexsort axis checkvrakesh2020-04-212-3/+15
|/ / /
* | | DOC: Clarify docs on mixed advanced indexing and slicing (gh-15891)Paul Rougieux2020-04-201-4/+13
| | | | | | | | | | | | | | | | | | It was not clear how to reproduce the slice example with multi dimensional array indexing. I hope the additional example clarifies the equivalence between slice and multi array for new users. Co-Authored-By: Eric Wieser <wieser.eric@gmail.com> Co-Authored-By: Anirudh Subramanian <anirudh2290@apache.org>
* | | BUG: Alpha parameter must be 1D in `generator.dirichlet` (#15951)panpiort82020-04-184-18/+32
| | | | | | | | | | | | | | | Only one dimensional alpha paramter is currently supported, but higher dimensions were silently allowed and gave an incorrect results. This fixes the regression. In the future, the API could be extended to allow higher dimensional arrays for alpha. Fixes gh-15915
* | | BUG: Fix inf and NaN-warnings in half float `nextafter` (#15988)Adam2020-04-172-8/+28
| | | | | | | | | | | | | | | | | | | | | This commit fixes the at `nextafter(np.inf, ...)` should not return NaN unless the second value is NaN. Also `nextafter(NaN, ...)` and `nextafter(..., NaN) should not give the invalid value warning (no invalid value is created, the invalid value is propagated). This aligns half-float `nextafter` with double/float `nextafter`. Closes #15977
* | | Merge pull request #15993 from vrakesh/masked_array_sort_docSebastian Berg2020-04-161-2/+12
|\ \ \ | | | | | | | | DOC: Fix method documentation of function sort in MaskedArray
| * | | DOC:Fix method documentation of function sort()vrakesh2020-04-161-2/+12
| |/ /
* | | DOC: Improve record module documentation (#15899)dustanlevenstein2020-04-161-16/+82
| | | | | | | | | | | | | | | | | | | | | | | | Addresses parts of #15853 by adding full function documentions with parameters to `numpy/core/records.py`. Co-authored-by: Dustan Levenstein <dlevenstein@gmail.com> Co-authored-by: Eric Wieser <wieser.eric@gmail.com> Co-authored-by: Ross Barnowski <rossbar@berkeley.edu>
* | | Merge pull request #15989 from anirudh2290/remove_0d_checkSebastian Berg2020-04-161-3/+2
|\ \ \ | |/ / |/| | MAINT: Remove 0d check for PyArray_ISONESEGMENT
| * | MAINT: Remove 0d check for PyArray_ISONESEGMENTAnirudh Subramanian2020-04-151-3/+2
| | |
* | | Merge pull request #15982 from eric-wieser/address-todoSebastian Berg2020-04-151-28/+17
|\ \ \ | | | | | | | | MAINT/BUG: Cleanup and minor fixes to conform_reduce_result
| * | | BUG: Fix double Py_DECREFEric Wieser2020-04-151-1/+0
| | | | | | | | | | | | | | | | `PyArray_SetWritebackIfCopyBase` steals a reference to base, even if it fails.
| * | | MAINT: Move declarations next to usageEric Wieser2020-04-151-17/+15
| | | |
| * | | MAINT: Address a TODO that was waiting for the umath/multiarray mergeEric Wieser2020-04-151-11/+3
| | | |
* | | | Merge pull request #15967 from anirudh2290/slow_pypy_implMatti Picus2020-04-154-1/+11
|\ \ \ \ | | | | | | | | | | TST: Add slow_pypy support
| * | | | MAINT: Make if else clause more readableAnirudh Subramanian2020-04-141-2/+5
| | | | |
| * | | | TST: Add slow_pypy supportAnirudh Subramanian2020-04-134-1/+8
| | | | |
* | | | | Merge pull request #15985 from eric-wieser/shorten-operator.index-backtraceSebastian Berg2020-04-151-7/+1
|\ \ \ \ \ | |_|_|/ / |/| | | | BUG: Avoid duplication in stack trace of `linspace(a, b, num=1.5)`
| * | | | BUG: Avoid duplication in stack trace of `linspace(a, b, num=1.5)`Eric Wieser2020-04-151-7/+1
| | |/ / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Before this commit, the stack trace was: ``` Traceback (most recent call last): File "C:\Users\wiese\Repos\numeric-python\numpy\build\testenv\Lib\site-packages\numpy\core\function_base.py", line 114, in linspace num = operator.index(num) TypeError: 'float' object cannot be interpreted as an integer During handling of the above exception, another exception occurred: Traceback (most recent call last): File "<ipython-input-13-802b8c6e85f6>", line 1, in <module> np.linspace(1, 2, 1.5) File "<__array_function__ internals>", line 5, in linspace File "C:\Users\wiese\Repos\numeric-python\numpy\build\testenv\Lib\site-packages\numpy\core\function_base.py", line 116, in linspace raise TypeError( TypeError: object of type <class 'float'> cannot be safely interpreted as an integer. ``` Now it is ``` Traceback (most recent call last): File "C:\Users\wiese\Repos\numeric-python\numpy\build\testenv\Lib\site-packages\numpy\core\function_base.py", line 114, in linspace num = operator.index(num) TypeError: 'float' object cannot be interpreted as an integer ``` This noisy traceback was introduced in f4dfe833e3e037bb69113f7250fad3699f918cfc.
* | | | Added note to angle function docstring about angle(0) being 0.Melissa Weber Mendonca2020-04-131-0/+5
| | | |
* | | | Merge pull request #15876 from panpiort8/multinomial_pvals_1dMatti Picus2020-04-114-4/+16
|\ \ \ \ | | | | | | | | | | BUG: Check that `pvals` is 1D in `_generator.multinomial`.
| * | | | Add minor tests enhancementPan Jan2020-04-062-2/+2
| | | | |