atan2 function

VARP atan2(
  1. VARP x,
  2. VARP y
)

Computes arctangent of y/x element-wise, respecting signs of the arguments.

Args:

  • x: A variable. Must be one of the following types: Halide_Type_Float, Halide_Type_Int
  • y: A variable. Must have the same type as x.

Returns:

  • A variable. Has the same type as x.

Implementation

VARP atan2(VARP x, VARP y) => VARP.fromPointer(C.mnn_expr_Atan2(x.ptr, y.ptr));