| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
| |
Co-authored-by: Ross Barnowski <rossbar@berkeley.edu>
|
|
|
| |
Co-authored-by: Ross Barnowski <rossbar@berkeley.edu>
|
|
|
| |
Co-authored-by: Ross Barnowski <rossbar@berkeley.edu>
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This commit adds a note to the documentation of finfo clarifying that
the attribute `tiny` does not represent the smallest positive usable
number. Instead it refers to the smallest positive number with there
being no leading 0's in the mantisse (normalized floating point number).
Alternatively, `tiny` represents the smallest positive floating point
number with full precision. The smallest positive subnormal floating
point number is typically orders of magnitudes smaller, but has reduced
precision since leading 0's in the mantisse are used to allow smaller
exponents than indicated by `minexp`.
The commit also adds a brief clarification to the docstring of machar.
Closes #16252
Co-authored-by: Anirudh Subramanian <anirudh2290@apache.org>
Co-authored-by: Ross Barnowski <rossbar@berkeley.edu>
|
|\
| |
| | |
DOC: Clarifications for ``np.var``.
|
| | |
|
|\ \
| | |
| | | |
MAINT: Unify cached (C-level static) imports
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
The main idea is that once we unify them, we can think about actually
being able to also clean them up.
This is far away from having no global state, but at this time I do not
see that as a seriousl goal personally. But it could be possible
to reload the module safely in a single interpreter maybe.
The commit adds the cache import for the complex casts, since it doubles
performance for small casts when the warning is not suppressed and it
unifies the handling.
|
|\ \ \
| |_|/
|/| | |
MAINT: cleanups to quantile
|
| | |
| | |
| | |
| | | |
It's easier to move the relevant axis to position 0 in `ap` first than it is to move it for every relevant object simultaneously.
|
| | |
| | |
| | |
| | | |
The `add` ufunc is happy to handle `out=None` by itself
|
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
* DOC: Clarifications for np.std
* Line lengths fixes in np.std
* Swapped variable names in np.std
|
|/ /
| |
| |
| |
| |
| |
| |
| | |
- Delete release note fragments from 1.19.0 (towncrier)
- Update 1.19.x release note (towncrier)
- Create 1.20.0-notes.rst for master development
- Update C-API versions for 1.20.x
- Update setup.py for 1.20.0
|
|\ \
| | |
| | | |
DOC: Fix typos and cosmetic issues
|
| | | |
|
|\ \ \
| | | |
| | | | |
BUG: Add missing decref in fromarray error path
|
| |/ /
| | |
| | |
| | |
| | |
| | | |
This function steals the dtype, so it must decref it also
on error. This is fixup of ffe76ac8df65c8e7831df9924a782276e060f3e6
which accidentally deleted the decref.
|
|/ /
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
* Using PyArray_PyIntAsIntp helper function instead
* TST: add tests for einsum numpy int and bool list subscripts
Added tests to check that einsum accepts numpy int64 types and
rejects bool. Rejecting bools is new behaviour in subscript lists.
I changed ValueError to TypeError on line 2496 in multiarraymodule.c
as it is more appropriate. I also modified einsumfunc.py to have the
same behaviour as in the C file when checking subscript list.
(Reject bools but accept anything else from operator.index())
Closes gh-15961
|
|\ \
| | |
| | | |
DOC: Unify cross-references between array joining methods
|
| | | |
|
|\ \ \
| | | |
| | | | |
DOC: Warn about behavior of ptp with signed integers.
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
* Add a warning to the docstrings of numpy.ma.MaskedArray.ptp and
numpy.ptp about a problem with signed integer arrays.
* Add an example to the the docstring of numpy.ptp that demonstrates
the issue and suggests a work-around.
* Add an "Examples" section to the docstring of MaskedArray.ptp
which includes the new example added to the docstring of numpy.ptp.
* Make the numbers in the basic example more interesting.
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
Fix for issue gh-15077. ma.core now checks and sets max and min
values for all float and complex dtypes. This fixes the max of a
masked array with a float16 or complex dtype returning inf
Builds on top of gh-15086.
Co-authored-by: William Jones <william.jones@physics.ox.ac.uk>
|
|/ / /
| | |
| | |
| | |
| | |
| | |
| | | |
This solution is related to the issue #15986. I also made a change to the newer string formatting.
Uses NameError, which prints nicer, and is actually the more correct error type.
Co-authored-by: Eric Wieser <wieser.eric@gmail.com>
Co-authored-by: Ross Barnowski <rossbar@berkeley.edu>
|
| | |
| | |
| | |
| | |
| | |
| | | |
Add documentation and examples to fromstring function
See #15853
Co-authored-by: Eric Wieser <wieser.eric@gmail.com>
|
| |/
|/|
| |
| |
| |
| |
| |
| | |
The lack of identity for `logaddexp2` was first identitifed in #4599.
The implementation in #8955 added -inf as identity for `logaddexp`,
but missed adding it for `logaddexp2`.
Co-Authored-By: Eric Wieser <wieser.eric@gmail.com>
Co-authored-by: Sebastian Berg <sebastian@sipsolutions.net>
|
|\ \
| | |
| | | |
BUG: Correct loop order in MT19937 jump
|
| | |
| | |
| | |
| | | |
Fix indent on reference and remove text that may be incorrect.
|
| | |
| | |
| | |
| | | |
Clarify the method used and the source of the code
|
| | |
| | |
| | |
| | | |
Remove unused file containing the old polynomial representation.
|
| | |
| | |
| | |
| | |
| | |
| | | |
Refactor polynomial to be unsigned long array
Remove unused code
Fix md5 calculation on BE
|
| | |
| | |
| | |
| | |
| | |
| | | |
Use the original loop order instead of an inverted order
closes #15394
|
|\ \ \
| | | |
| | | | |
BUG: fix signature of PyArray_SearchSorted in __init__.pxd
|
| |/ / |
|
| | |
| | |
| | |
| | |
| | | |
Remove trailing colon
Fix indentation in RandomState choice doc string
|
|\ \ \
| |/ /
|/| | |
MAINT: Unify casting error creation (outside the iterator)
|
| | | |
|
| | | |
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
* Handle out-of-band buffers with protocol 5+
Previously we were checking that protocol 5 was matched exactly. However
it should be fine if a newer protocol was used as well. So check that at
least protocol 5 was used (though newer is fine too).
* Drop error for protocol's greater than 5
|
|\ \ \
| | | |
| | | | |
ENH: resync numpy/__init__.pxd with upstream
|
| | | | |
|
| | | | |
|
| | | | |
|
|\ \ \ \
| | | | |
| | | | | |
BUG: skip complex256 arcsinh precision test on glibc2.17
|
| | | | | |
|
| | |_|/
| |/| | |
|
|\ \ \ \
| | | | |
| | | | | |
BUG: Fix string to bool cast regression
|
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
While the legacy behaviour of casting strings to booleans by
first converting the string to an integer is undersireable in
general. It will require a Deprecation/FutureWarning to do the
transition.
Changing this accidentally was thus a regression.
Closes gh-16023
|