Skip to content

Commit 777bece

Browse files
authored
Update output dtypes for bitwise shift operations (#201)
1 parent 9469487 commit 777bece

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

spec/API_specification/elementwise_functions.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -352,7 +352,7 @@ Shifts the bits of each element `x1_i` of the input array `x1` to the left by ap
352352

353353
- **out**: _<array>_
354354

355-
- an array containing the element-wise results. The returned array must have the same data type as `x1`.
355+
- an array containing the element-wise results. The returned array must have a data type determined by {ref}`type-promotion`.
356356

357357
(function-bitwise_invert)=
358358
### bitwise_invert(x, /)
@@ -416,7 +416,7 @@ This operation must be an arithmetic shift (i.e., sign-propagating) and thus equ
416416

417417
- **out**: _<array>_
418418

419-
- an array containing the element-wise results. The returned array must have the same data type as `x1`.
419+
- an array containing the element-wise results. The returned array must have a data type determined by {ref}`type-promotion`.
420420

421421
(function-bitwise_xor)=
422422
### bitwise_xor(x1, x2, /)

0 commit comments

Comments
 (0)