summaryrefslogtreecommitdiff
path: root/numpy
Commit message (Collapse)AuthorAgeFilesLines
* MAINT: Do not override `sliding_window_view` module to `numpy`Sebastian Berg2020-11-061-1/+1
|
* API: Do not import sliding_window_view to main namespaceSebastian Berg2020-11-051-12/+11
| | | | | 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.
* | ENH: Implement sliding window (gh-17394)Klaus Zimmermann2020-11-052-3/+334
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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-052-8/+0
|/ | | Closes gh-17702
* DOC: Fixuptakanori-pskq2020-11-051-2/+2
|
* DOC: Prepend `ma.`takanori-pskq2020-11-042-13/+15
|
* 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-031-6/+6
|\ \ \ | |/ / |/| | Fix small typos.
| * | fix small typos.Qiyu82020-11-031-6/+6
| | |
* | | 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
| | | |
* | | | BUG: Fix small bug in make_lite.py.Charles Harris2020-11-011-1/+1
| |/ / |/| | | | | | | | Flagged by LGTM.
* | | Merge pull request #17644 from BvB93/shape-baseRalf Gommers2020-11-015-7/+103
|\ \ \ | | | | | | | | ENH: Add annotations for `np.core.shape_base`
| * | | MAINT: Removed unused importsBas van Beek2020-10-261-3/+3
| | | |
| * | | TST: Added typing tests for `np.core.shape_base`Bas van Beek2020-10-263-0/+52
| | | |
| * | | ENH: Add annotations for `np.core.shape_base`Bas van Beek2020-10-262-7/+51
| | | |
* | | | Merge pull request #17611 from mbkumar/f2py_dylib_macRalf Gommers2020-11-011-1/+1
|\ \ \ \ | | | | | | | | | | BUG: mac dylib treated as part of extra objects by f2py
| * | | | BUG: mac dylib treated as extra library by f2pyBharat Medasani2020-10-221-1/+1
| | |_|/ | |/| |
* | | | Merge pull request #17670 from eric-wieser/test-getarrlenRalf Gommers2020-11-011-0/+31
|\ \ \ \ | | | | | | | | | | DOC: f2py: Add a docstring for getarrlen
| * | | | DOC: f2py: Add a docstring for getarrlenEric Wieser2020-10-291-0/+31
| | | | | | | | | | | | | | | | | | | | | | | | | The API of this function is awful, and I still have no idea what it does. Maybe someone reading the docstring will be able to work it out.
* | | | | Update nditer_impl.hvorfol2020-10-301-1/+1
| |_|_|/ |/| | | | | | | operator '+' in line 272 have to advance char** or npy_intp*?
* | | | Merge pull request #16782 from seiko2plus/implement_npyv_pymodMatti Picus2020-10-2915-6/+2543
|\ \ \ \ | | | | | | | | | | ENH, TST: Bring the NumPy C SIMD vectorization interface "NPYV" to Python
| * | | | MAINT, TST: update name of _SIMD submodule to match import pathSayed Adel2020-10-272-6/+4
| | | | |
| * | | | MAINT, TST: Add testing cases for partial/non-contig load and storeSayed Adel2020-10-272-7/+316
| | | | |
| * | | | MAINT, TST: Add _SIMD attribute for each enabled SIMD extensionSayed Adel2020-10-271-0/+10
| | | | |
| * | | | BUG, BLD: fix multi-target name in `CCompilerOpt`'s reportSayed Adel2020-10-271-4/+3
| | | | |
| * | | | MAINT, TST: Serveral imporvments to _SIMD moduleSayed Adel2020-10-2711-341/+323
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - use plain variables - clean up aligned allocate - use `PyArg_ParseTuple` for empty args - use `Py_ssize_t` instead of `unsigned` and `size_t` - improve coding style - no need for a custom raises assertions - use parametrize instead of inner loops - leave a comment about nature of mode testing unit - shift to get max/min of int72 - add more info to repr of vector object - get ride of exec() and use type() instead - use `.inc` as extension for sub-headers instead of `.h` - add `FMA4` and drop `SSE41` from _SIMD targets Co-authored-by: Eric Wieser <wieser.eric@gmail.com>
| * | | | MAINT, TST: use PyArg_ParseTuple() instead of iterate Python tuple directlySayed Adel2020-10-274-68/+61
| | | | | | | | | | | | | | | | | | | | Co-authored-by: Eric Wieser <wieser.eric@gmail.com>
| * | | | TST: Add testing unit for fused NPYV intrinsicsSayed Adel2020-10-272-2/+37
| | | | |
| * | | | TST: Add testing unit for checking the sainty of SIMD moduleSayed Adel2020-10-271-0/+104
| | | | |
| * | | | ENH, TST: Add testing unit that covers the current implemented intrinsics.Sayed Adel2020-10-271-0/+408
| | | | |
| * | | | ENH: Expose the NumPy C SIMD vectorization interface "NPYV" to PythonSayed Adel2020-10-2712-2/+1701
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | '_simd' is a new module to bring the NumPy C SIMD vectorization interface "NPYV" The module is designed to be extremely flexible so that it can accommodate any kind intrinsics, also to generate a python interface almost similar to the C interface. The main purpose of this module is to test NPYV intrinsics in python, but still can be used as an effective solution in designing SIMD kernels. Also add a new command-line argument `--simd-test` to control of targeted CPU features for the `_simd` module. Co-authored-by: Matti Picus <matti.picus@gmail.com> Co-authored-by: Eric Wieser <wieser.eric@gmail.com>