Skip to content

Commit 54aab90

Browse files
committed
Add missing description of deg keyword to dpnp.angle
1 parent 8bdfd40 commit 54aab90

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

dpnp/dpnp_algo/dpnp_elementwise_common.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@
4545
"acceptance_fn_subtract",
4646
"DPNPAngle",
4747
"DPNPBinaryFunc",
48+
"DPNPImag",
4849
"DPNPReal",
4950
"DPNPRound",
5051
"DPNPUnaryFunc",
@@ -491,8 +492,8 @@ def __init__(
491492
docs,
492493
)
493494

494-
def __call__(self, x, deg=False):
495-
res = super().__call__(x)
495+
def __call__(self, x, deg=False, out=None, order="K"):
496+
res = super().__call__(x, out=out, order=order)
496497
if deg is True:
497498
res *= 180 / dpnp.pi
498499
return res
@@ -515,7 +516,7 @@ def __init__(
515516
docs,
516517
)
517518

518-
def __call__(self, x, out, order):
519+
def __call__(self, x, out=None, order="K"):
519520
return super().__call__(x, out=out, order=order)
520521

521522

@@ -536,7 +537,7 @@ def __init__(
536537
docs,
537538
)
538539

539-
def __call__(self, x, out, order):
540+
def __call__(self, x, out=None, order="K"):
540541
if numpy.iscomplexobj(x):
541542
return super().__call__(x, out=out, order=order)
542543
return x

dpnp/dpnp_iface_mathematical.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -491,6 +491,9 @@ def _process_ediff1d_args(arg, arg_name, ary_dtype, ary_sycl_queue, usm_type):
491491
----------
492492
x : {dpnp.ndarray, usm_ndarray}
493493
Input array, expected to have a complex-valued floating-point data type.
494+
deg : bool, optional
495+
Return angle in degrees if ``True``, radians if ``False``.
496+
Default: ``False``.
494497
out : {None, dpnp.ndarray, usm_ndarray}, optional
495498
Output array to populate.
496499
Array must have the correct shape and the expected data type.

0 commit comments

Comments
 (0)