TorchLean API

NN.Core.Numeric.Angle

Polar angle of real coordinates #

Complex logarithms need the argument of a point, in addition to real logarithms and square roots. Atan2 supplies this real-coordinate operation without requiring an ordering or an angle operation on complex numbers themselves. Floating-point instances follow the host library's signed-zero and branch-cut conventions.

class Atan2 (α : Type) :

Principal polar angle of the point (x, y), in radians.

  • atan2 : ααα

    The argument order is y, x, as in the standard two-argument arctangent.

Instances
    @[instance_reducible]
    @[instance_reducible]