jax.numpy.conjugate¶
-
jax.numpy.
conjugate
(x)[source]¶ Return the complex conjugate, element-wise.
LAX-backend implementation of
conjugate()
. Original docstring below.conjugate(x, /, out=None, *, where=True, casting=’same_kind’, order=’K’, dtype=None, subok=True[, signature, extobj])
The complex conjugate of a complex number is obtained by changing the sign of its imaginary part.
- Parameters
x (array_like) – Input value.
- Returns
y – The complex conjugate of x, with same dtype as y. This is a scalar if x is a scalar.
- Return type
Notes
conj is an alias for conjugate:
>>> np.conj is np.conjugate True
Examples
>>> np.conjugate(1+2j) (1-2j)
>>> x = np.eye(2) + 1j * np.eye(2) >>> np.conjugate(x) array([[ 1.-1.j, 0.-0.j], [ 0.-0.j, 1.-1.j]])