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

Function conj

numpy/array_api/_elementwise_functions.py:244–252  ·  view source on GitHub ↗

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

(x: Array, /)

Source from the content-addressed store, hash-verified

242
243
244def conj(x: Array, /) -> Array:
245 """
246 Array API compatible wrapper for :py:func:`np.conj <numpy.conj>`.
247
248 See its docstring for more information.
249 """
250 if x.dtype not in _complex_floating_dtypes:
251 raise TypeError("Only complex floating-point dtypes are allowed in conj")
252 return Array._new(np.conj(x))
253
254
255def cos(x: Array, /) -> Array:

Callers 1

choleskyFunction · 0.85

Calls 1

_newMethod · 0.80

Tested by

no test coverage detected