Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
MAINT: Align masked with normal ufunc loops
This removes the ability to specialize masked inner loops (for now) as was already noted in NEP 41 and NEP 43. The masked array is now passed in as the last argument to use the identical signature and avoid duplicating the code unnecessary. This is part of the longer process to refactor ufuncs to NEP 43 and split out, to keep the diff's shorter (or at least easier to read).
- Loading branch information
Showing
5 changed files
with
156 additions
and
298 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
Masked inner-loops cannot be customized anymore | ||
----------------------------------------------- | ||
The masked inner-loop selector is now never used. A warning | ||
will be given in the unlikely event that it was customized. | ||
|
||
We do not expect that any code uses this. If you do use it, | ||
you must unset unset the selector on newer NumPy version. | ||
Please also contact the NumPy developers, we do anticipate | ||
providing a new, more specific, mechanism. | ||
|
||
This change will not affect the results of operations, since | ||
the fallback (which is always used internally) will handle | ||
the operation equivalently, the customization was a planned | ||
feature to allow for faster masked operation. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.