summaryrefslogtreecommitdiff
path: root/numpy
Commit message (Collapse)AuthorAgeFilesLines
...
| | * | | | | | | | | | | | MAINT: Also remove XDECREF_ERR from cython `.pyd`Sebastian Berg2023-03-312-2/+0
| | | |_|_|_|_|_|_|/ / / / | | |/| | | | | | | | | |
| * | | | | | | | | | | | DOC: Removed `.shape` setting note from reshape (#23491)JoryKlaverstijn2023-03-311-18/+3
| | |_|_|_|_|_|_|_|_|/ / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * DOC: Changed the example for modifying the shape without modifying the initial object * DOC: Removed the example for directly assigning a tuple to the shape attribute of a numpy array * DOC: Re-added note about copying data when reshaping an array to numpy.reshape docs * DOC: reformat for linting --------- Co-authored-by: Jory Klaverstijn <j.klaverstijn@student.rug.nl> Co-authored-by: Matti Picus <matti.picus@gmail.com>
| * | | | | | | | | | | DOC: Fix typos & grammer in docstrings and comments (#23503)Pratyay Banerjee2023-03-304-4/+4
| | |/ / / / / / / / / | |/| | | | | | | | |
| * | | | | | | | | | MAINT: use PyArray_ClearBuffer in PyArray_FillWithScalarNathan Goldbaum2023-03-291-1/+2
| |/ / / / / / / / /
| * | | | | | | | | MAIN: Remove dual.py from meson.buildCharles Harris2023-03-281-1/+0
| | | | | | | | | |
| * | | | | | | | | MAINT: Remove numpy.dual from API checkCharles Harris2023-03-281-1/+0
| | | | | | | | | |
| * | | | | | | | | DEP: remove deprecated `numpy.dual` moduleRalf Gommers2023-03-282-87/+0
| | |/ / / / / / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | It has been deprecated since numpy 1.20, and code search engines don't turn up a reason to keep this around. [skip actions] [skip cirrus]
| * | | | | | | | BUG: Use output when given on numpy.dot C-API branch (#23459)Pedro Lameiras2023-03-283-5/+20
| |/ / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Updated the dot function C-API so that it now calls `np.multiply` with `out=` and returns it on branch of the function where the correct behaviour was not in place. Added two tests regarding this issue. Closes #21081. Co-authored-by: Sebastian Berg <sebastian@sipsolutions.net>
| * | | | | | | Merge pull request #23460 from molsonkiko/crackfortran_backtrackingCharles Harris2023-03-272-2/+49
| |\ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | MAINT: Fix ReDOS vulnerability in crackfortran.py
| | * | | | | | | make time tests more resilient to random noisemolsonkiko2023-03-261-7/+16
| | | | | | | | |
| | * | | | | | | make regex still match cases where OG fix failedmolsonkiko2023-03-262-7/+20
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | My first replacement regex would have failed to match cases like '@)@bind foo bar baz@(@@)@' which should apparently be matched. Added a test to make sure the regex does this.
| | * | | | | | | update test for less arbitrary time requirementmolsonkiko2023-03-261-1/+2
| | | | | | | | |
| | * | | | | | | initial fix for nameargspattern regexmolsonkiko2023-03-262-3/+10
| | | | | | | | |
| | * | | | | | | add nameargspattern backtracking testmolsonkiko2023-03-261-0/+17
| | | | | | | | |
| * | | | | | | | Merge pull request #23466 from numpy/revert-23061-vectorizeCharles Harris2023-03-272-109/+11
| |\ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | Revert "ENH: Enabled the use of numpy.vectorize as a decorator"
| | * | | | | | | | Revert "ENH: Enabled the use of numpy.vectorize as a decorator"Matti Picus2023-03-272-109/+11
| | | | | | | | | |
| * | | | | | | | | BUG: in the fastest path form ufunc.at, properly increment args[2]mattip2023-03-272-0/+14
| |/ / / / / / / /
| * | | | | | | | TST: Fix failing test (introduced deprecation after written)Sebastian Berg2023-03-261-2/+2
| |/ / / / / / /
| * | | | | | | Merge pull request #21120 from BvB93/matmulMatti Picus2023-03-264-31/+146
| |\ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | ENH: Add support for inplace matrix multiplication
| | * | | | | | | BUG: Remove self == res assert for inplace matmulSebastian Berg2022-12-021-3/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | It appears that assertion is not true for bad __array_ufunc__ or similar implementations. And we have at least one test that runs into it.
| | * | | | | | | ENH: Replace AxisError with more spefic oneSebastian Berg2022-12-021-1/+21
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In theory, an object matmul could be caught here, but lets assume that doesn't happen...
| | * | | | | | | ENH: Implement matmul using the nuclear optionsSebastian Berg2022-12-021-23/+40
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This uses the `axes` argument. Arguably the most correct version since we use the full ufunc machinery, so we can't mess up with random conversions (which the test suite actually did notice, at least for an array subclass). OTOH, for now the errors are ridiculously unhelpful, some of which could be fixed in the gufunc code (at least made _better_).
| | * | | | | | | MAINT: Move check and expand error message slightlySebastian Berg2022-12-021-3/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In principle, this is probably still not 100% correct always since we convert the the other object to an array upfront (to get the error). But the alternative solution using `axes=` seems tricky as well...
| | * | | | | | | MAINT: Explicitly raise when `a @= b` would otherwise broadcast the outputBas van Beek2022-12-022-2/+26
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add special casing for `1d @ 1d` and `2d @ 1d` ops.
| | * | | | | | | TST: Add `__imatmul__` tests for arrays with various shapesBas van Beek2022-12-021-5/+27
| | | | | | | | |
| | * | | | | | | TST: Add a dedicated `__imatmul__` test case for large matricesBas van Beek2022-12-021-1/+14
| | | | | | | | |
| | * | | | | | | MAINT: Let `ndarray.__imatmul__` handle inplace matrix multiplication in the ↵Bas van Beek2022-12-021-12/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | array-api
| | * | | | | | | TST: Add tests for inplace matrix multiplicationBas van Beek2022-12-021-11/+28
| | | | | | | | |
| | * | | | | | | DOC: Remove an outdated `matmul` commentBas van Beek2022-12-021-1/+0
| | | | | | | | |
| | * | | | | | | ENH: Add support for inplace matrix multiplicationBas van Beek2022-12-022-7/+19
| | | | | | | | |
| * | | | | | | | Merge pull request #23061 from MatteoRaso/vectorizeMatti Picus2023-03-262-11/+109
| |\ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | ENH: Enabled the use of numpy.vectorize as a decorator
| | * | | | | | | | @vectorize now requires arguments to specify keywordsMatteo Raso2023-02-092-27/+15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This reverses commit 7a2ded1522305
| | * | | | | | | | Added a test for positional args (PR-23061)Matteo Raso2023-02-082-0/+30
| | | | | | | | | |
| | * | | | | | | | Added test for vectorize decorator projectMatteo Raso2023-01-271-0/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This test makes sure a function's docstring is properly preserved after calling the vectorize decorator.
| | * | | | | | | | Changed documentation for numpy.vectorizeMatteo Raso2023-01-241-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Previous definition implies that vectorize returns generalized functions, which is not true.
| | * | | | | | | | Fixed lint errorMatteo Raso2023-01-211-1/+1
| | | | | | | | | |
| | * | | | | | | | ENH: Enabled use of numpy.vectorize as decorator (#9477)Matteo Raso2023-01-212-12/+76
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Most of this code comes from PR-9593, but with the default value for pyfunc being numpy._NoValue instead of None, no override of __new__, and no effort to make subclassing possible. Co-Authored-By: Michael Lamparski <diagonaldevice@gmail.com>
| | * | | | | | | | BUG: Added __name__ atribute to vectorize class (#23021)Matteo Raso2023-01-182-0/+8
| | | | | | | | | |
| * | | | | | | | | Merge pull request #23322 from F3eQnxN3RriK/enh-ma-dotMatti Picus2023-03-263-96/+149
| |\ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | ENH: Add support to `ma.dot()` for non-2d arrays with `strict=True`
| | * | | | | | | | | MAINT: move `mask_rowcols` to `ma/extras.py`yuki2023-03-252-93/+90
| | | | | | | | | | |
| | * | | | | | | | | ENH: revert changes of `mask_rowcols`yuki2023-03-221-8/+12
| | | | | | | | | | |
| | * | | | | | | | | ENH: fix formatyuki2023-03-221-12/+24
| | | | | | | | | | |
| | * | | | | | | | | Merge branch 'main' into enh-ma-dotyuki2023-03-2265-463/+575
| | |\ \ \ \ \ \ \ \ \
| | * | | | | | | | | | add support for non-2d arraysyuki2023-03-032-25/+65
| | | | | | | | | | | |
| * | | | | | | | | | | MAINT: Fix reference roles of astyuki2023-03-251-5/+5
| | | | | | | | | | | |
| * | | | | | | | | | | MAINT: Fix reference roles of `ast`yuki2023-03-251-7/+7
| | | | | | | | | | | |
| * | | | | | | | | | | MAINT Fix broken links in absoft.pyChristian Veenhuis2023-03-241-2/+2
| | | | | | | | | | | |
| * | | | | | | | | | | DOC: Remove descriptions in method declarationsyuki2023-03-231-2/+2
| | | | | | | | | | | |
| * | | | | | | | | | | Merge pull request #23404 from ngoldbaum/dtype-class-array-creationSebastian Berg2023-03-238-71/+198
| |\ \ \ \ \ \ \ \ \ \ \ | | |_|_|_|_|_|/ / / / / | |/| | | | | | | | | | ENH: allow using dtype classes in array creation functions
| | * | | | | | | | | | MAINT: add test for string dtype discovery from a dtypemetaNathan Goldbaum2023-03-201-0/+2
| | | | | | | | | | | |