sin function

VARP sin(
  1. VARP x
)

Computes sine of x element-wise.

Given an input variable, this function computes sine of every element in the variable. Input range is (-inf, inf) and output range is -1,1.

Args:

  • x: A variable. Must be one of the following types: Halide_Type_Float

Returns:

  • A variable. Has the same type as x.

Implementation

VARP sin(VARP x) => VARP.fromPointer(C.mnn_expr_Sin(x.ptr));