torch_angle function

Angle

Angle

torch_angle(self)

Arguments

  • self: (Tensor) the input tensor.

angle(input) -> Tensor

Computes the element-wise angle (in radians) of the given input tensor.

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

Examples

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