Skip to main content

select_n

Function select_n 

Source
pub fn select_n<T: Copy>(which: &[usize], cases: &[&[T]]) -> Vec<T>
Expand description

select_n: element i comes from cases[which[i]] (which is a scalar or has the shape of the cases). Out-of-range indices are clamped.