squaredDifference function

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

Returns the value of (x - y)(x - y) element-wise.

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 squaredDifference(VARP x, VARP y) => VARP.fromPointer(C.mnn_expr_SquaredDifference(x.ptr, y.ptr));