Skip to content

Commit 0f14623

Browse files
Filled in docstring for abs
1 parent 0df49b6 commit 0f14623

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

dpctl/tensor/_elementwise_funcs.py

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,22 @@
2020

2121
# U01: ==== ABS (x)
2222
_abs_docstring_ = """
23+
abs(x, out=None, order='K')
24+
2325
Calculate the absolute value element-wise.
26+
27+
Args:
28+
x (usm_ndarray):
29+
Input array, expected to have numeric data type.
30+
out (usm_ndarray):
31+
Output array to populate. Array have the correct
32+
shape and the expected data type.
33+
order ("C","F","A","K", optional): memory layout of the newly
34+
output array, if parameter `out` is `None`.
35+
Default: "K".
36+
Return:
37+
usm_ndarray:
38+
An array containing the element-wise absolute values.
2439
"""
2540

2641
abs = UnaryElementwiseFunc("abs", ti._abs_result_type, ti._abs, _abs_docstring_)

0 commit comments

Comments
 (0)