| Commit message (Collapse) | Author | Age | Files | Lines |
|\
| |
| | |
DOC: Update some plotting code to current Matplotlib idioms
|
| |
| |
| |
| |
| |
| |
| |
| |
| | |
- 3D Axes are created via add_subplot(projection='3d')
- There is now a `stairs()` function that's specifically designed for
showing histogram curves
- Labels should be passed as keyword arguments to the plot functions
instead of to `legend()`, which reduces the risk of mixing them up.
- ensure equal axis scaling in the meshgrid example
|
|\ \
| | |
| | | |
ENH: Use new argument parsing for array creation functions
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
The array creation functions have the most to gain:
1. np.asarray is 4 times faster and commonly used.
2. Other functions are wrapped using __array_function__ in Python
making it more difficult
This commit (unfortunatly) has to do a few things:
* Modify __array_function__ C-side dispatching to accomodate
the fastcall argument convention.
* Move asarray, etc. to C after removing all "fast paths" from
np.array (simplifying the code)
* Fixup imports, since asarray was imported directly in a few places
* Replace some places where `np.array` was probably used for speed
instead of np.asarray or similar. (or by accident in 1 or 2 places)
|
| |/
|/| |
|
|/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* Added chain exception in _pocketfft.py
* Added chain exception in format.py
* Added chain exception in make_lite.py
* Added chain exception in mrecords.py
* added from e for exceptions
* Minor update for _read_array_header exception msg
* Removed \n from excp msg and e from msg format.
Co-authored-by: Eric Wieser <wieser.eric@gmail.com>
* Update numpy/linalg/lapack_lite/make_lite.py
Co-authored-by: Eric Wieser <wieser.eric@gmail.com>
Co-authored-by: Eric Wieser <wieser.eric@gmail.com>
Co-authored-by: Charles Harris <charlesr.harris@gmail.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* Added chain exception in _bits_of func
* Added chain exception
* Added chain exception in unixccompiler.py
* Added chain exception in config.py
* Added chain exception in fcompiler __init__.py
* Added chain exception in compaq.py
* Added chain exception in format.py
* Updated raise chain exception
* STY: Break long line.
Co-authored-by: Charles Harris <charlesr.harris@gmail.com>
|
|
|
|
|
|
|
| |
Ensures that type checkers will allow the likes of:
>>> import numpy as np
>>> out = np.lib.stride_tricks.sliding_window_view(...)
|
|\
| |
| | |
MAINT: Chain exceptions in index_tricks.py and mrecords.py
|
| | |
|
|\ \
| | |
| | | |
DOC: Clarify docs for fliplr() / flipud()
|
| |/ |
|
|/ |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
|
| |
Subclass input of piecewise was already respected, so it seems more
logical to ensure the output is the same subclass (possibly just an
oversight that it was not done before).
|
|
|
|
| |
platforms
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* benchmark bench_lib.Unique added
* extended test_unique_1d
* modify _unique1d
* extend test with return_index, return_inverse and return_counts parameters
* documentation updated
* Update numpy/lib/arraysetops.py
Co-authored-by: Bas van Beek <43369155+BvB93@users.noreply.github.com>
* full coverage of nan types
Co-authored-by: Bas van Beek <43369155+BvB93@users.noreply.github.com>
* added tests for the datetime like dtypes
* nan as vector of length 1
* use aux[-1] as nan, ..versionchanged, release note
* for complex arrays all NaN values are considered equivalent
Co-authored-by: filip_trojan <Tarantula2018>
Co-authored-by: Bas van Beek <43369155+BvB93@users.noreply.github.com>
|
| |
|
| |
|
|\ |
|
| |\
| | |
| | | |
BUG: np.in1d bug on the object array (issue 17923)
|
| | | |
|
| | | |
|
| | | |
|
| |\ \
| | | |
| | | | |
ENH: Add annotations for `np.lib.ufunclike`
|
| | | | |
|
| | | | |
|
| | |/ |
|
| |\ \
| | | |
| | | | |
DOC: Fix docstring of _median_nancheck.
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
_median_nancheck doesn't support axis being anything other than an
integer (otherwise the call to moveaxis would fail). This is fine,
because median goes through _ureduce for multi-axis support.
|
| |\ \ \
| | |_|/
| |/| | |
MAINT: Avoid moveaxis overhead in median.
|
| | |/
| | |
| | |
| | |
| | |
| | | |
This change speeds up taking the median of 1001 floats by ~20%, as
measured by
`python -mtimeit -s 'import numpy as np; x = np.random.randn(1001)' -- 'np.median(x)'`
|
|\ \ \
| |/ / |
|
| |\ \
| | |/
| |/| |
DOC: Specified all possible return types for trapz function #18140
|
| | |
| | |
| | |
| | | |
being returned
|
|/ / |
|
|\ \
| | |
| | | |
MAINT: Add missing placeholder annotations
|
| | | |
|
| | | |
|
|/ / |
|
|/
|
|
| |
Missing `s` in two spellings.
|
|\
| |
| | |
DOC: lib/shape_base numpydoc formatting.
|
| |
| |
| |
| |
| |
| | |
Numpydoc parses parameter different depending on whether there is a space
before the colon, for it to be properly interpreted as names and types;
spaces need to be put on each side.
|
|\ \
| |/
|/| |
DEP: Deprecate promotion of numbers and bool to string
|
| | |
|
|\ \
| | |
| | | |
ENH: Improve performance of tril_indices and triu_indices
|
| | | |
|