setDiff1D function

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

Computes the difference between two lists of numbers or strings.

Given a list x and a list y, this operation returns a list out that represents all values that are in x but not in y.

The returned list out is sorted in the same order that the numbers appear in x (duplicates are preserved).

This operation also returns a list idx that represents the position of each out element in x.

Arguments:

  • x: 1-D variable of type Halide_Type_Int. Values to keep.
  • y: 1-D variable of type Halide_Type_Int. Values to remove.

Returns:

  • Output out: 1-D variable of type Halide_Type_Int. Values present in x but not in y.

Implementation

VARP setDiff1D(VARP x, VARP y) => VARP.fromPointer(C.mnn_expr_SetDiff1D(x.ptr, y.ptr));