Array API compatible wrapper for :py:func:`np.arccos `. See its docstring for more information.
(x: Array, /)
| 29 | |
| 30 | # Note: the function name is different here |
| 31 | def acos(x: Array, /) -> Array: |
| 32 | """ |
| 33 | Array API compatible wrapper for :py:func:`np.arccos <numpy.arccos>`. |
| 34 | |
| 35 | See its docstring for more information. |
| 36 | """ |
| 37 | if x.dtype not in _floating_dtypes: |
| 38 | raise TypeError("Only floating-point dtypes are allowed in acos") |
| 39 | return Array._new(np.arccos(x._array)) |
| 40 | |
| 41 | |
| 42 | # Note: the function name is different here |
no test coverage detected