summaryrefslogtreecommitdiff
path: root/numpy/lib
Commit message (Collapse)AuthorAgeFilesLines
...
* | | | DOC: trunc, floor, ceil, rint, fix should all link to each other in see alsoTim Hoffmann2021-03-011-1/+1
| | | |
* | | | MAINT: Relax the type-constraints of `IndexExpression.__getitem__`Bas van Beek2021-02-251-5/+5
| | | |
* | | | ENH: Expose `index_tricks` content to `np` and `np.lib` namespaceBas van Beek2021-02-251-14/+20
| | | |
* | | | ENH: Add annotations for `np.lib.index_tricks`Bas van Beek2021-02-251-0/+179
|/ / /
* | | API: make piecewise subclass safe using use zeros_like.Marten van Kerkwijk2021-02-222-2/+10
| | | | | | | | | | | | | | | | | | 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).
* | | BUG: Fixed an issue where `diagflat` could overflow on windows and 32-bit ↵Bas van Beek2021-02-211-4/+4
| | | | | | | | | | | | platforms
* | | BUG: Fix unique handling of nan entries. (#18070)Filip Trojan2021-02-122-1/+66
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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>
* | | Fixed chain exception for array_split func (#18317)Abhay Raghuvanshi2021-02-101-1/+1
| | |
* | | Adjusted formulas to estimator and removed repeatJamie2021-02-101-2/+1
| | |
* | | Merge remote-tracking branch 'upstream/master' into histogram-binwidth-docJamie2021-02-106-9/+100
|\ \ \
| * \ \ Merge pull request #18369 from AngelGris/bugfix-for-in1d-with-tuplesCharles Harris2021-02-102-0/+37
| |\ \ \ | | | | | | | | | | BUG: np.in1d bug on the object array (issue 17923)
| | * | | Implement different approach to fix bugAngelGris2021-02-081-20/+8
| | | | |
| | * | | BUG: np.in1d bug on the object array (issue 17923)AngelGris2021-02-081-4/+20
| | | | |
| | * | | numpy/lib/arraysetops.pyAngelGris2021-02-081-0/+33
| | | | |
| * | | | Merge pull request #18377 from BvB93/ufunclikeCharles Harris2021-02-093-5/+60
| |\ \ \ \ | | | | | | | | | | | | ENH: Add annotations for `np.lib.ufunclike`
| | * | | | MAINT: Fix the dtype mentioned in 2 `np.lib.ufunclike` exceptionsBas van Beek2021-02-091-2/+4
| | | | | |
| | * | | | ENH: Expose `ufunclike` annotations to the `np` and `np.lib` namespaceBas van Beek2021-02-091-3/+6
| | | | | |
| | * | | | ENH: Add annotations for `np.lib.ufunclike`Bas van Beek2021-02-091-0/+50
| | |/ / /
| * | | | Merge pull request #18379 from anntzer/mndSebastian Berg2021-02-091-2/+2
| |\ \ \ \ | | | | | | | | | | | | DOC: Fix docstring of _median_nancheck.
| | * | | | DOC: Fix docstring of _median_nancheck.Antony Lee2021-02-091-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | _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.
| * | | | | Merge pull request #18324 from anntzer/fmSebastian Berg2021-02-091-2/+1
| |\ \ \ \ \ | | |_|/ / / | |/| | | | MAINT: Avoid moveaxis overhead in median.
| | * | | | MAINT: Avoid moveaxis overhead in median.Antony Lee2021-02-061-2/+1
| | |/ / / | | | | | | | | | | | | | | | | | | | | | | | | | 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)'`
* | | | | Merge remote-tracking branch 'upstream/master' into histogram-binwidth-docJamie2021-02-071-4/+7
|\ \ \ \ \ | |/ / / /
| * | | | Merge pull request #18342 from zolboo1024/trapz_docMatti Picus2021-02-061-4/+7
| |\ \ \ \ | | |/ / / | |/| | | DOC: Specified all possible return types for trapz function #18140
| | * | | Specified the return type for trapz to include the possibility of ndarray ↵zolboo10242021-02-051-4/+7
| | | | | | | | | | | | | | | | | | | | being returned
* | | | | Added sentence to docstring of histogram_bin_edgesJamie2021-02-061-1/+3
|/ / / /
* | | | Merge pull request #18302 from BvB93/missing-attrCharles Harris2021-02-021-1/+4
|\ \ \ \ | | | | | | | | | | MAINT: Add missing placeholder annotations
| * | | | MAINT: Add previously-missing placeholder annotationsBas van Beek2021-02-011-0/+1
| | | | |
| * | | | MAINT: Add missing `__all__` annotationsBas van Beek2021-02-011-1/+3
| | | | |
* | | | | ENH: defer the import of shutilChristoph Gohlke2021-01-311-2/+4
|/ / / /
* | | | DOC: Nupydoc format space before `:` in ParametersMatthias Bussonnier2021-01-311-1/+1
|/ / / | | | | | | | | | Missing `s` in two spellings.
* | | Merge pull request #18232 from Carreau/shape_base_docMatti Picus2021-01-261-7/+7
|\ \ \ | | | | | | | | DOC: lib/shape_base numpydoc formatting.
| * | | DOC: lib/shape_base numpydoc formatting.Matthias Bussonnier2021-01-251-7/+7
| | | | | | | | | | | | | | | | | | | | | | | | 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.
* | | | Merge pull request #18116 from seberg/futurewarn-string-promotionMatti Picus2021-01-261-1/+4
|\ \ \ \ | |/ / / |/| | | DEP: Deprecate promotion of numbers and bool to string
| * | | DEP: Deprecate promotion of numbers and bool to stringSebastian Berg2021-01-251-1/+4
| | | |
* | | | Merge pull request #18176 from Illviljan/Illviljan-faster_tril_indicesMatti Picus2021-01-251-3/+10
|\ \ \ \ | | | | | | | | | | ENH: Improve performance of tril_indices and triu_indices
| * | | | import indices, broadcast_toIllviljan2021-01-151-7/+8
| | | | |
| * | | | use same tri formatIllviljan2021-01-151-1/+1
| | | | |
| * | | | faster tril_indicesIllviljan2021-01-111-2/+8
| |/ / / | | | | | | | | nonzero is slow. Use np.indices and np.broadcast_to to speed it up.
* | | | fix from reviewmattip2021-01-241-2/+5
| | | |
* | | | TST: raise memory limit for testmattip2021-01-221-1/+1
|/ / /
* | | Merge pull request #18091 from anntzer/docsetCharles Harris2020-12-292-2/+2
|\ \ \ | | | | | | | | DOC: Avoid using "set of" when talking about an ordered list.
| * | | DOC: Avoid using "set of" when talking about an ordered list.Antony Lee2020-12-292-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | ... 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.
* | | | MAINT: multiline regex class simplifyTyler Reddy2020-12-291-1/+1
|/ / / | | | | | | | | | | | | | | | * follow up to gh-18083 covering multi-line uses of `re.compile(..` and some cases for `re.match(..` with single (meta)character classes
* | | MAINT: regex char class improveTyler Reddy2020-12-281-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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.
* | | DOC: Fix a couple of reference to verbatim and vice versaMatthias Bussonnier2020-12-182-6/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* | | DOC: Doc for deprecate_with_doc (#17852)kumudlakara2020-12-172-2/+36
| | | | | | | | | | | | | | | | | | * 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>
* | | Merge pull request #17942 from stefanv/npyio-docMatti Picus2020-12-141-19/+21
|\ \ \ | | | | | | | | DOC: Clarify savez documentation of naming arrays in output file
| * | | Clarify savez documentation around naming of arrays in output fileStefan van der Walt2020-12-061-19/+21
| | | |
* | | | [DOC] np.kron use double backticks for non-refsMatthias Bussonnier2020-12-131-2/+2
|/ / / | | | | | | | | | | | | | | | 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.