Set routines#

Boolean operations#

mars.tensor.in1d

Test whether each element of a 1-D tensor is also present in a second tensor.

mars.tensor.isin

Calculates element in test_elements, broadcasting over element only.

mars.tensor.setdiff1d

Find the set difference of two tensors.

mars.tensor.union1d

Find the union of two tensors.