| Commit message (Collapse) | Author | Age | Files | Lines |
|\
| |
| | |
ENH: Fix exception causes in four .py files
|
| |
| |
| | |
Co-Authored-By: Ross Barnowski <rossbar@berkeley.edu>
|
| |
| |
| | |
Co-Authored-By: Ross Barnowski <rossbar@berkeley.edu>
|
| | |
|
| |
| |
| |
| |
| |
| | |
* 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>
|
|\ \
| | |
| | | |
DOC: add a note on sampling 2-D arrays to random.choice docstring
|
| |/
| |
| |
| | |
Addresses a comment on gh-10835.
|
|/
|
| |
Add missing closing brackets, script to generate the list in the PR gh-16051.
|
| |
|
|
|
| |
Co-Authored-By: Ross Barnowski <rossbar@berkeley.edu>
|
|\
| |
| | |
MAINT: AVX512 implementation with intrinsic for float64 input np.exp()
|
| | |
|
| | |
|
| | |
|
| | |
|
| | |
|
| | |
|
| | |
|
| | |
|
| | |
|
| |
| |
| | |
AIX needs to be told to use large file support at all times. Fixes parts of gh-15801.
|
| | |
|
| | |
|
|\ \
| | |
| | | |
ENH: Fix exception causes in build_clib.py
|
| | | |
|
|\ \ \
| | | |
| | | | |
TST: Add tests for the conversion utilities
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
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.
|
|\ \ \ \
| | | | |
| | | | | |
MAINT,TST: Move _repr_latex tests to test_printing.
|
| | |/ /
| |/| |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
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).
|
|/ / / |
|
| | |
| | |
| | |
| | |
| | |
| | | |
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>
|
| | |
| | |
| | |
| | |
| | | |
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
|
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
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
|
|\ \ \
| | | |
| | | | |
DOC: Fix method documentation of function sort in MaskedArray
|
| |/ / |
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
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>
|
|\ \ \
| |/ /
|/| | |
MAINT: Remove 0d check for PyArray_ISONESEGMENT
|
| | | |
|
|\ \ \
| | | |
| | | | |
MAINT/BUG: Cleanup and minor fixes to conform_reduce_result
|
| | | |
| | | |
| | | |
| | | | |
`PyArray_SetWritebackIfCopyBase` steals a reference to base, even if it fails.
|
| | | | |
|
| | | | |
|
|\ \ \ \
| | | | |
| | | | | |
TST: Add slow_pypy support
|
| | | | | |
|
| | | | | |
|
|\ \ \ \ \
| |_|_|/ /
|/| | | | |
BUG: Avoid duplication in stack trace of `linspace(a, b, num=1.5)`
|
| | |/ /
| |/| |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
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.
|
| | | | |
|
|\ \ \ \
| | | | |
| | | | | |
BUG: Check that `pvals` is 1D in `_generator.multinomial`.
|
| | | | | |
|