jax.numpy.conjugate#
- jax.numpy.conjugate(x, /)[source]#
Return element-wise complex-conjugate of the input.
JAX implementation of
numpy.conjugate
.- Parameters:
x (ArrayLike) – inpuat array or scalar.
- Returns:
An array containing the complex-conjugate of
x
.- Return type:
See also
jax.numpy.real()
: Returns the element-wise real part of the complex argument.jax.numpy.imag()
: Returns the element-wise imaginary part of the complex argument.
Examples
>>> jnp.conjugate(3) Array(3, dtype=int32, weak_type=True) >>> x = jnp.array([2-1j, 3+5j, 7]) >>> jnp.conjugate(x) Array([2.+1.j, 3.-5.j, 7.-0.j], dtype=complex64)