torch_imag function

Imag

Imag

torch_imag(self)

Arguments

  • self: (Tensor) the input tensor.

imag(input) -> Tensor

Returns the imaginary part of the input tensor.

Warning

Not yet implemented.

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

Examples

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