MCPcopy Create free account
hub / github.com/numpy/numpy / acos

Function acos

numpy/array_api/_elementwise_functions.py:31–39  ·  view source on GitHub ↗

Array API compatible wrapper for :py:func:`np.arccos `. See its docstring for more information.

(x: Array, /)

Source from the content-addressed store, hash-verified

29
30# Note: the function name is different here
31def 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

Callers 2

legacy_vonmisesFunction · 0.85
random_vonmisesFunction · 0.85

Calls 1

_newMethod · 0.80

Tested by

no test coverage detected