summaryrefslogtreecommitdiff
path: root/numpy/polynomial/polyutils.py
diff options
context:
space:
mode:
authorSebastian Berg <sebastian@sipsolutions.net>2021-04-22 11:48:14 -0500
committerSebastian Berg <sebastian@sipsolutions.net>2021-04-22 13:41:47 -0500
commit57b483d3728fbf0f1a5c162a4ab0e657aab23669 (patch)
tree28ecb52a162d9f7769ad05c09c969feba83cda3e /numpy/polynomial/polyutils.py
parentf048051926bdc1f145b4e6a9516b0ee55b5d1e8e (diff)
downloadnumpy-57b483d3728fbf0f1a5c162a4ab0e657aab23669.tar.gz
MAINT: Generalize and shorten the ufunc "trivially iterable" path
This avoids the large macros designed for specific number of arguments and generalizes it to all ufuncs with a single output (Instead of only 1 and 2 operand input ufuncs.) That is not a big generalization, but the code actually shortens and while it is slightly more complex in umath itself, it avoids the fairly complex macros as well. The `==` fixes a case where the fast-path was previously not used even though it would be valid to use it. These are still used outside the ufunc machinery.
Diffstat (limited to 'numpy/polynomial/polyutils.py')
0 files changed, 0 insertions, 0 deletions