pub fn set_diff(set: &[usize], exclude: &[usize]) -> Vec<usize>Expand description
Set difference: elements in set that are not in exclude.
Preserves the order of elements in set.
ยงExamples
use tensor4all_tcicore::matrix::set_diff;
let result = set_diff(&[0, 1, 2, 3, 4], &[1, 3]);
assert_eq!(result, vec![0, 2, 4]);