fn
conj
→Tensorconj(input: Tensor)Element-wise complex conjugate.
Negates the imaginary part of each entry. For real inputs it is a no-op (returns the input).
Parameters
inputTensorInput tensor.
Returns
TensorElement-wise result with the same shape as input.
Notes
Mathematical definition:
Involution: conj(conj(x)) == x. Used in inner products on complex vector spaces.
Examples
>>> import lucid
>>> x = lucid.tensor([1.0, 2.0, 3.0])
>>> lucid.conj(x)
Tensor([...])