Skip to content

Commit 3e1b522

Browse files
Update trigonometric func docs adding broadcast info
1 parent cfcf613 commit 3e1b522

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

dpnp/dpnp_iface_trigonometric.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -516,6 +516,8 @@ def _get_accumulation_res_dt(a, dtype, _out):
516516
Second input array, also expected to have a real-valued
517517
floating-point data type.
518518
Both inputs `x1` and `x2` can not be scalars at the same time.
519+
If ``x1.shape != x2.shape``, they must be broadcastable to a common shape
520+
(which becomes the shape of the output).
519521
out : {None, dpnp.ndarray, usm_ndarray}, optional
520522
Output array to populate.
521523
Array must have the correct shape and the expected data type.
@@ -1198,6 +1200,8 @@ def cumlogsumexp(
11981200
x2 : {dpnp.ndarray, usm_ndarray, scalar}
11991201
Second input array, also expected to have a real-valued data type.
12001202
Both inputs `x1` and `x2` can not be scalars at the same time.
1203+
If ``x1.shape != x2.shape``, they must be broadcastable to a common shape
1204+
(which becomes the shape of the output).
12011205
out : {None, dpnp.ndarray, usm_ndarray}, optional
12021206
Output array to populate.
12031207
Array must have the correct shape and the expected data type.
@@ -1503,6 +1507,8 @@ def cumlogsumexp(
15031507
Second input array, also expected to have a real-valued
15041508
floating-point data type.
15051509
Both inputs `x1` and `x2` can not be scalars at the same time.
1510+
If ``x1.shape != x2.shape``, they must be broadcastable to a common shape
1511+
(which becomes the shape of the output).
15061512
out : {None, dpnp.ndarray, usm_ndarray}, optional
15071513
Output array to populate.
15081514
Array must have the correct shape and the expected data type.
@@ -1575,6 +1581,8 @@ def cumlogsumexp(
15751581
Second input array, also expected to have a real-valued
15761582
floating-point data type.
15771583
Both inputs `x1` and `x2` can not be scalars at the same time.
1584+
If ``x1.shape != x2.shape``, they must be broadcastable to a common shape
1585+
(which becomes the shape of the output).
15781586
out : {None, dpnp.ndarray, usm_ndarray}, optional
15791587
Output array to populate.
15801588
Array must have the correct shape and the expected data type.

0 commit comments

Comments
 (0)