summaryrefslogtreecommitdiff
path: root/numpy/lib/arraysetops.py
diff options
context:
space:
mode:
authorSebastian Berg <sebastian@sipsolutions.net>2020-12-09 13:15:22 -0600
committerSebastian Berg <sebastian@sipsolutions.net>2021-05-12 15:33:34 -0700
commit97031c1b82c6d86cfad9c3ecded3971402e6e8c9 (patch)
tree6f8ee1c08065678df87fa79ec2593ce5189c6657 /numpy/lib/arraysetops.py
parent6f5ad737691433b39953663c904e9d330fa38332 (diff)
downloadnumpy-97031c1b82c6d86cfad9c3ecded3971402e6e8c9.tar.gz
MAINT: Implement new style promotion for `np.result_type`, etc.
This implements a new style promotion scheme for mutiple inputs as are passed to `np.result_type`. It should be noted that result-type heavily relies on "value-based casting" logic/promotion logic. This fact is inherited to many places. When user DTypes are introduced some of these places should potentially use "weak DType" logic instead if the input is a Python scalar. This is *not* yet implemented. It would be necessary to mark these the same way as is currently done for `np.result_type`. This type of "marking" will generally be necessary in a few places, even if may get away with just switching the logic everywhere.
Diffstat (limited to 'numpy/lib/arraysetops.py')
0 files changed, 0 insertions, 0 deletions