Array API compatible wrapper for :py:func:`np.conj `. See its docstring for more information.
(x: Array, /)
| 242 | |
| 243 | |
| 244 | def 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 | |
| 255 | def cos(x: Array, /) -> Array: |