torch_conj function

Conj

Conj

torch_conj(self)

Arguments

  • self: (Tensor) the input tensor.

conj(input) -> Tensor

Computes the element-wise conjugate of the given input tensor.

\mboxouti=conj(\mboxinputi) \mbox{out}_{i} = conj(\mbox{input}_{i})

Examples

if (torch_is_installed()) { ## Not run: torch_conj(torch_tensor(c(-1 + 1i, -2 + 2i, 3 - 3i))) ## End(Not run) }
  • Maintainer: Daniel Falbel
  • License: MIT + file LICENSE
  • Last published: 2025-02-14