@@ -134,15 +134,15 @@ def binary_repr(num, width=None):
134
134
135
135
Parameters
136
136
----------
137
- x1 : {dpnp.ndarray, usm_ndarray, scalar}
138
- First input array , expected to have integer or boolean data type.
137
+ x1, x2 : {dpnp.ndarray, usm_ndarray, scalar}
138
+ Input arrays , expected to have integer or boolean data type.
139
139
Both inputs `x1` and `x2` can not be scalars at the same time.
140
- x2 : {dpnp.ndarray, usm_ndarray, scalar}
141
- Second input array, also expected to have integer or boolean data
142
- type. Both inputs `x1` and `x2` can not be scalars at the same time.
140
+ If ``x1.shape != x2.shape``, they must be broadcastable to a common shape
141
+ (which becomes the shape of the output).
143
142
out : {None, dpnp.ndarray, usm_ndarray}, optional
144
143
Output array to populate.
145
- Array must have the correct shape and the expected data type.
144
+ Array must have a shape that the inputs broadcast to and
145
+ the expected data type.
146
146
Default: ``None``.
147
147
order : {"C", "F", "A", "K"}, optional
148
148
Memory layout of the newly output array, if parameter `out` is ``None``.
@@ -218,15 +218,15 @@ def binary_repr(num, width=None):
218
218
219
219
Parameters
220
220
----------
221
- x1 : {dpnp.ndarray, usm_ndarray, scalar}
222
- First input array , expected to have integer or boolean data type.
221
+ x1, x2 : {dpnp.ndarray, usm_ndarray, scalar}
222
+ Input arrays , expected to have integer or boolean data type.
223
223
Both inputs `x1` and `x2` can not be scalars at the same time.
224
- x2 : {dpnp.ndarray, usm_ndarray, scalar}
225
- Second input array, also expected to have integer or boolean data
226
- type. Both inputs `x1` and `x2` can not be scalars at the same time.
224
+ If ``x1.shape != x2.shape``, they must be broadcastable to a common shape
225
+ (which becomes the shape of the output).
227
226
out : {None, dpnp.ndarray, usm_ndarray}, optional
228
227
Output array to populate.
229
- Array must have the correct shape and the expected data type.
228
+ Array must have a shape that the inputs broadcast to and
229
+ the expected data type.
230
230
Default: ``None``.
231
231
order : {"C", "F", "A", "K"}, optional
232
232
Memory layout of the newly output array, if parameter `out` is ``None``.
@@ -293,15 +293,15 @@ def binary_repr(num, width=None):
293
293
294
294
Parameters
295
295
----------
296
- x1 : {dpnp.ndarray, usm_ndarray, scalar}
297
- First input array , expected to have integer or boolean data type.
296
+ x1, x2 : {dpnp.ndarray, usm_ndarray, scalar}
297
+ Input arrays , expected to have integer or boolean data type.
298
298
Both inputs `x1` and `x2` can not be scalars at the same time.
299
- x2 : {dpnp.ndarray, usm_ndarray, scalar}
300
- Second input array, also expected to have integer or boolean data
301
- type. Both inputs `x1` and `x2` can not be scalars at the same time.
299
+ If ``x1.shape != x2.shape``, they must be broadcastable to a common shape
300
+ (which becomes the shape of the output).
302
301
out : {None, dpnp.ndarray, usm_ndarray}, optional
303
302
Output array to populate.
304
- Array must have the correct shape and the expected data type.
303
+ Array must have a shape that the inputs broadcast to and
304
+ the expected data type.
305
305
Default: ``None``.
306
306
order : {"C", "F", "A", "K"}, optional
307
307
Memory layout of the newly output array, if parameter `out` is ``None``.
@@ -376,7 +376,8 @@ def binary_repr(num, width=None):
376
376
Input array, expected to have integer or boolean data type.
377
377
out : {None, dpnp.ndarray, usm_ndarray}, optional
378
378
Output array to populate.
379
- Array must have the correct shape and the expected data type.
379
+ Array must have a shape that the input broadcast to and
380
+ the expected data type.
380
381
Default: ``None``.
381
382
order : {"C", "F", "A", "K"}, optional
382
383
Memory layout of the newly output array, if parameter `out` is ``None``.
@@ -458,9 +459,12 @@ def binary_repr(num, width=None):
458
459
Second input array, also expected to have integer data type.
459
460
Each element must be greater than or equal to ``0``.
460
461
Both inputs `x1` and `x2` can not be scalars at the same time.
462
+ If ``x1.shape != x2.shape``, they must be broadcastable to a common shape
463
+ (which becomes the shape of the output).
461
464
out : {None, dpnp.ndarray, usm_ndarray}, optional
462
465
Output array to populate.
463
- Array must have the correct shape and the expected data type.
466
+ Array must have a shape that the inputs broadcast to and
467
+ the expected data type.
464
468
Default: ``None``.
465
469
order : {"C", "F", "A", "K"}, optional
466
470
Memory layout of the newly output array, if parameter `out` is ``None``.
@@ -532,9 +536,12 @@ def binary_repr(num, width=None):
532
536
Second input array, also expected to have integer data type.
533
537
Each element must be greater than or equal to ``0``.
534
538
Both inputs `x1` and `x2` can not be scalars at the same time.
539
+ If ``x1.shape != x2.shape``, they must be broadcastable to a common shape
540
+ (which becomes the shape of the output).
535
541
out : {None, dpnp.ndarray, usm_ndarray}, optional
536
542
Output array to populate.
537
- Array must have the correct shape and the expected data type.
543
+ Array must have a shape that the inputs broadcast to and
544
+ the expected data type.
538
545
Default: ``None``.
539
546
order : {"C", "F", "A", "K"}, optional
540
547
Memory layout of the newly output array, if parameter `out` is ``None``.
0 commit comments