|
61 | 61 |
|
62 | 62 | abs = UnaryElementwiseFunc("abs", ti._abs_result_type, ti._abs, _abs_docstring_) |
63 | 63 | del _abs_docstring_ |
| 64 | + |
| 65 | +# U02: ==== ACOS (x) |
| 66 | +_acos_docstring = r""" |
| 67 | +acos(x, /, \*, out=None, order='K') |
| 68 | +
|
| 69 | +Computes inverse cosine for each element `x_i` for input array `x`. |
| 70 | +
|
| 71 | +Args: |
| 72 | + x (usm_ndarray): |
| 73 | + Input array, expected to have a floating-point data type. |
| 74 | + out (Union[usm_ndarray, None], optional): |
| 75 | + Output array to populate. |
| 76 | + Array must have the correct shape and the expected data type. |
| 77 | + order ("C","F","A","K", optional): |
| 78 | + Memory layout of the new output array, if parameter |
| 79 | + `out` is ``None``. |
| 80 | + Default: "K". |
| 81 | +
|
| 82 | +Returns: |
| 83 | + usm_ndarray: |
| 84 | + An array containing the element-wise inverse cosine, in radians |
| 85 | + and in the closed interval :math:`[0, \pi]`. The data type of the |
| 86 | + returned array is determined by the Type Promotion Rules. |
| 87 | +""" |
| 88 | + |
| 89 | +acos = UnaryElementwiseFunc( |
| 90 | + "acos", ti._acos_result_type, ti._acos, _acos_docstring |
| 91 | +) |
| 92 | +del _acos_docstring |
| 93 | + |
| 94 | +# U03: ===== ACOSH (x) |
| 95 | +_acosh_docstring = r""" |
| 96 | +acosh(x, /, \*, out=None, order='K') |
| 97 | +
|
| 98 | +Computes inverse hyperbolic cosine for each element `x_i` for input array `x`. |
| 99 | +
|
| 100 | +Args: |
| 101 | + x (usm_ndarray): |
| 102 | + Input array, expected to have a floating-point data type. |
| 103 | + out (Union[usm_ndarray, None], optional): |
| 104 | + Output array to populate. |
| 105 | + Array must have the correct shape and the expected data type. |
| 106 | + order ("C","F","A","K", optional): |
| 107 | + Memory layout of the new output array, if parameter |
| 108 | + `out` is ``None``. |
| 109 | + Default: "K". |
| 110 | +
|
| 111 | +Returns: |
| 112 | + usm_ndarray: |
| 113 | + An array containing the element-wise inverse hyperbolic cosine, in |
| 114 | + radians and in the half-closed interval :math:`[0, \infty)`. The data |
| 115 | + type of the returned array is determined by the Type Promotion Rules. |
| 116 | +""" |
| 117 | + |
| 118 | +acosh = UnaryElementwiseFunc( |
| 119 | + "acosh", ti._acosh_result_type, ti._acosh, _acosh_docstring |
| 120 | +) |
| 121 | +del _acosh_docstring |
0 commit comments