| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
| | | | |
|
| | | | |
|
| | | | |
|
|/ / / |
|
| | |
| | |
| | |
| | |
| | |
| | | |
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
|
| | | | | |
|
| | | | | |
|
| |/ / /
| | | |
| | | | |
nonzero is slow. Use np.indices and np.broadcast_to to speed it up.
|
| | | | |
|
|/ / / |
|
|\ \ \
| | | |
| | | | |
DOC: Avoid using "set of" when talking about an ordered list.
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
... or when the input isn't/cannot be a set. I left a few usages, e.g.
in random sampling, where "set" is reasonable as informal description of
an array as the order doesn't matter; however, for e.g. np.gradient the
order of the returned list is clearly important, so "set" is wrong.
Also some other minor doc edits noticed during the grepping: using
`shape` instead of `form` in `cov` is consistent with most other places;
the wording in `Polynomial.trim` now matches other methods on the same
class.
|
|/ / /
| | |
| | |
| | |
| | |
| | | |
* follow up to gh-18083 covering multi-line uses
of `re.compile(..` and some cases for `re.match(..`
with single (meta)character classes
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
* replace superfluous single-character regex character
classes with their literal string equivalents; this
avoids the overhead associated with a character class
when there's only a single character enclosed (so there's
no benefit to the class overhead)
* for more information see:
Chapter 6 of:
Friedl, Jeffrey. Mastering Regular Expressions. 3rd ed.,
O’Reilly Media, 2009.
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
This update a coupe of references (single backticks) that actually are not to
verbatim/code (double backticks); and a couple of verbatim to reference
when they do actually exists and can be resolved in context.
I probably missed other; and stayed simple but spoted a few other
inconsistencies that I did not fix:
- some ``...`` could actually be :math:`...` but not always clear if
it would be better.
- some intervals are [``...``], other are ``[...]``
I guess they could be discussed individually; it was mostly the failing
references that bothered me.
|
| | |
| | |
| | |
| | |
| | |
| | | |
* Add doc for deprecate_with_doc
Co-authored-by: Bas van Beek <43369155+BvB93@users.noreply.github.com>
Co-authored-by: Matti Picus <matti.picus@gmail.com>
|
|\ \ \
| | | |
| | | | |
DOC: Clarify savez documentation of naming arrays in output file
|
| | | | |
|
|/ / /
| | |
| | |
| | |
| | |
| | | |
Some part of the docstring were between simple backticks which are
therefore marked as cross-reference, while I belive the intended role is
likely verbatim.
|