diff options
author | Developer-Ecosystem-Engineering <65677710+Developer-Ecosystem-Engineering@users.noreply.github.com> | 2021-11-18 14:32:20 -0800 |
---|---|---|
committer | Developer-Ecosystem-Engineering <65677710+Developer-Ecosystem-Engineering@users.noreply.github.com> | 2021-11-18 14:32:20 -0800 |
commit | 9fe353e048bc317099bb13cae4cb5a4de8c0c656 (patch) | |
tree | 4976e4328da9906d99cd2478547ca1e2829e071d /numpy/array_api/_searching_functions.py | |
parent | 66ca468b97873c1c8bfe69bddac6df633780c71c (diff) | |
parent | 5e9ce0c0529e3085498ac892941a020a65c7369a (diff) | |
download | numpy-9fe353e048bc317099bb13cae4cb5a4de8c0c656.tar.gz |
Merge branch 'as_min_max' of https://github.com/Developer-Ecosystem-Engineering/numpy into as_min_max
Diffstat (limited to 'numpy/array_api/_searching_functions.py')
-rw-r--r-- | numpy/array_api/_searching_functions.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/numpy/array_api/_searching_functions.py b/numpy/array_api/_searching_functions.py index 3dcef61c3..40f5a4d2e 100644 --- a/numpy/array_api/_searching_functions.py +++ b/numpy/array_api/_searching_functions.py @@ -43,4 +43,5 @@ def where(condition: Array, x1: Array, x2: Array, /) -> Array: """ # Call result type here just to raise on disallowed type combinations _result_type(x1.dtype, x2.dtype) + x1, x2 = Array._normalize_two_args(x1, x2) return Array._new(np.where(condition._array, x1._array, x2._array)) |