summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Create build_test.ymlbuild_testMatti Picus2020-11-091-0/+33
| | | add a new workflow
* Merge pull request #17723 from seberg/sliding-view-not-mainSebastian Berg2020-11-061-1/+1
|\ | | | | MAINT: Do not override `sliding_window_view` module to `numpy`
| * MAINT: Do not override `sliding_window_view` module to `numpy`Sebastian Berg2020-11-061-1/+1
|/
* Merge pull request #17720 from seberg/sliding-view-not-mainMatti Picus2020-11-063-16/+16
|\ | | | | API: Do not import sliding_window_view to main namespace
| * API: Do not import sliding_window_view to main namespaceSebastian Berg2020-11-053-16/+16
|/ | | | | At least for now, lets not import it to the main namespace, since there is no agreement that this is a good idea.
* Merge pull request #17715 from ianthomas23/revert_17654Charles Harris2020-11-052-31/+0
|\ | | | | REV: Revert gh-17654 - f2py incorrectly translates dimension declarations.
| * Revert PR gh-17654 which failed to fix issue gh-8062.Ian Thomas2020-11-052-31/+0
| | | | | | | | See also PR gh-17687.
* | Merge pull request #17717 from BvB93/gitgnoreCharles Harris2020-11-051-0/+9
|\ \ | | | | | | MAINT: Add more files to `.gitgnore`
| * | MAINT: Add more files to `.gitgnore`Bas van Beek2020-11-051-0/+9
| |/
* | ENH: Implement sliding window (gh-17394)Klaus Zimmermann2020-11-054-3/+340
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * implement sliding_window_view #7753 Test cases are shown in the issue page. * Add Example Cases * Add step_size and N-dim support * Add shape and step_size check. Remove warning. * Remove shape default Add step_size default's description. * Give proper parameter name 'step' * fix a parameter description mistake * implement test function for sliding_window_view() * implement test function for sliding_window_view() * Fix according to @eric-wieser comments * Change arange to ogrid in Examples * remove np.squeeze on return line * Clarify document to avoid parameter confusion. * add `writable` and more explanation in docs * resolve a write conflit * fixes according to @seberg review * resolve write hazard * remove outdated docs. * change referring according to @mattip. change 'writeable' to 'readonly' as @seberg suggest. remove 'step' as @eric-wieser request * fix test minor error * DOC: Grammar fixes * STY: Add missing line break required by PEP8 * + Change readonly parameter to writeable. + Update writeable description. + Fix a few parameter checks. + Other minor improvements. * Move to new api as proposed by @eric-wieser - Change api to follow suggestion by Eric Wieser in https://github.com/numpy/numpy/pull/10771#issuecomment-524715356 - Update docstring - Add more tests * Improve documentation * Add sliding_window_view to documentation index * Apply suggestions from code review Co-authored-by: Eric Wieser <wieser.eric@gmail.com> * Fix window shape check * Add `sliding_window_view` to __all__ * Add tests for error cases * Add array_function dispatching * Change dispatcher argument defaults to None * Simplify array function dispatching * Added "np." prefix to doctests * Split tests * Improved docstring * Add release note * Fix docstring formatting * Fix doctest * Remove namespacing in documentation indexing * Improve docstring * Improved docstring * Simplified docstring * Improve docstring to make pseudo code stand out * Improve docstring * Add simple application example * Correct release note * Improve link with as_strides * Add note about performance * Tidy up main doc string * Make language on performance warning stronger * Bugfix: pass subok and writeable to as_strided * Add writeable test * Add subok test * Change subok test to use custom array subclass instead of unsupported MaskedArray * Add version added information Co-authored-by: Eric Wieser <wieser.eric@gmail.com> Co-authored-by: Fanjin <fjzeng@ucsd.edu> Co-authored-by: Fanjin Zeng <Fnjn@users.noreply.github.com> Co-authored-by: Eric Wieser <wieser.eric@gmail.com> Co-authored-by: fanjin <fjzeng@outlook.com> Closes gh-7753
* | ENH: adds type hints to numpy.version (gh-17711)Douglas Fenstermacher2020-11-053-13/+5
|/ | | Closes gh-17702
* Merge pull request #16736 from takanori-pskq/i13114-2Matti Picus2020-11-053-15/+20
|\ | | | | DOC: Prepend `ma.` to references in ``numpy.ma``
| * DOC: Add ``ma.isMaskedArray`` and aliasestakanori-pskq2020-11-051-0/+3
| |
| * DOC: Fixuptakanori-pskq2020-11-051-2/+2
| |
| * DOC: Prepend `ma.`takanori-pskq2020-11-042-13/+15
|/
* DOC: Modify Templates (#17691)Takanori H2020-11-044-5/+16
| | | * DOC: Modify Templates
* Merge pull request #17708 from Qiyu8/improve-einsum-benchMatti Picus2020-11-041-12/+59
|\ | | | | Improve the einsum bench by adding new bench cases and variable rename.
| * improve the einsum bench by adding new bench cases and variable rename.Qiyu82020-11-041-12/+59
| |
* | Add info on transopose to absolute beginners tutorial (#17703)prateek arora2020-11-031-4/+11
| | | | | | | | | | | | Adds a blurb about the transpose property of ndarray and updates formatting of some rst inline literals. Co-authored-by: Ross Barnowski <rossbar@berkeley.edu>
* | Merge pull request #17701 from BvB93/pyiCharles Harris2020-11-0312-0/+45
|\ \ | | | | | | BUG: Fixed an issue where `.pyi` files were ignored by numpy sub-packages
| * | TST: Validate the existence of `.pyi` stub filesBas van Beek2020-11-031-0/+34
| | |
| * | BUG: Fixed an issue where `.pyi` weren't picked up by numpy sub-packagesBas van Beek2020-11-0311-0/+11
| | |
* | | Merge pull request #17295 from seberg/issue-17294Matti Picus2020-11-035-27/+106
|\ \ \ | | | | | | | | BUG,ENH: fix pickling user-scalars by allowing non-format buffer export
| * | | MAINT: Simplify code path slightlySebastian Berg2020-10-221-3/+2
| | | |
| * | | BUG: Fix memloc to be unsigned and add debug info to testSebastian Berg2020-10-221-2/+2
| | | |
| * | | TST: Modify test to see if the error is in pickling or unpicklingSebastian Berg2020-10-221-1/+2
| | | |
| * | | DOC: Add a comment to explain the format transferSebastian Berg2020-10-221-0/+6
| | | |
| * | | MAINT: Pass in flags instead of format and contig explicitlySebastian Berg2020-10-221-10/+7
| | | |
| * | | TST: Add test for non-FORMAT user dtype array/scalar exportSebastian Berg2020-10-221-0/+15
| | | | | | | | | | | | | | | | | | | | This also tests pickling as a regression test, since at least at this time it is directly related to the buffer export.
| * | | TST: Fix `tp_name` of rationalSebastian Berg2020-10-221-1/+1
| | | | | | | | | | | | | | | | | | | | This is necessary to allow pickling of the type object, which is necessary to test pickling of the scalar (and in arrays)
| * | | ENH: Allow buffer export and pickling of `np.generic` subclassesSebastian Berg2020-10-221-0/+45
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Previously we had code that would allow exporting the buffer, but then fail for any reasonable subclass, because such a subclass should have its own user-dtype. The change is, that now a subclass without its own user-dtype will inherit the correct behaviour directly. This allows pickling of of such user-defined scalars (with user-defined dtype) if no FORMAT was requested in the buffer export. The latter allows the generic pickling code to succeed. Closes gh-17294
| * | | ENH: allow exporting user-dtype as buffers without FORMATSebastian Berg2020-10-221-24/+40
| | | |
* | | | Merge pull request #17699 from BvB93/DTypeLikeSebastian Berg2020-11-0311-118/+118
|\ \ \ \ | |_|/ / |/| | | MAINT: Rename `DtypeLike` to `DTypeLike`
| * | | MAINT: Rename `DtypeLike` to `DTypeLike`Bas van Beek2020-11-0311-118/+118
| | | |
* | | | Merge pull request #17700 from Qiyu8/fix-typosMatti Picus2020-11-032-7/+7
|\ \ \ \ | |/ / / |/| | | Fix small typos.
| * | | fix small typos.Qiyu82020-11-032-7/+7
| | |/ | |/|
* | | Merge pull request #17681 from Qiyu8/sum_intrinsicMatti Picus2020-11-037-0/+138
|\ \ \ | | | | | | | | SIMD: Add sum intrinsics for float/double.
| * | | improve intrinsics and add sum intrinsic testQiyu82020-11-037-17/+43
| | | |
| * | | add a newline at the end of the file.Qiyu82020-11-025-5/+5
| | | |
| * | | SIMD: Add sum intrinsics for float/double.Qiyu82020-10-305-0/+112
| | | |
* | | | Merge pull request #17695 from mattip/pypyCharles Harris2020-11-022-4/+27
|\ \ \ \ | | | | | | | | | | TST: use a more standard workflow for PyPy
| * | | | fix getting OpenBLASmattip2020-11-021-3/+6
| | | | |
| * | | | TST: use a more standard workflow for PyPymattip2020-11-022-4/+24
| | |/ / | |/| |
* | | | Merge pull request #17689 from charris/fix-lgtm-errorCharles Harris2020-11-021-1/+1
|\ \ \ \ | | | | | | | | | | BUG: Fix small bug in ``make_lite.py``.
| * | | | BUG: Fix small bug in make_lite.py.Charles Harris2020-11-011-1/+1
| |/ / / | | | | | | | | | | | | Flagged by LGTM.
* | | | Merge pull request #17693 from numpy/dependabot/pip/pytz-2020.4Charles Harris2020-11-021-1/+1
|\ \ \ \ | | | | | | | | | | MAINT: Bump pytz from 2020.1 to 2020.4
| * | | | MAINT: Bump pytz from 2020.1 to 2020.4dependabot/pip/pytz-2020.4dependabot-preview[bot]2020-11-021-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bumps [pytz](https://github.com/stub42/pytz) from 2020.1 to 2020.4. - [Release notes](https://github.com/stub42/pytz/releases) - [Commits](https://github.com/stub42/pytz/compare/release_2020.1...release_2020.4) Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
* | | | | Merge pull request #17696 from charris/post-1.19.4-release-updateMatti Picus2020-11-024-2/+49
|\ \ \ \ \ | |/ / / / |/| | | | REL: Update master after 1.19.4 release.
| * | | | REL: Update master after 1.19.4 release.Charles Harris2020-11-024-2/+49
| |/ / /
* | | | Merge pull request #17692 from numpy/dependabot/pip/hypothesis-5.41.0Sebastian Berg2020-11-021-1/+1
|\ \ \ \ | |/ / / |/| | | MAINT: Bump hypothesis from 5.38.0 to 5.41.0