Function rstats::vecvecg::merge_indexed
source · [−]pub fn merge_indexed<T>(
v1: &[T],
idx1: &[usize],
v2: &[T],
idx2: &[usize]
) -> (Vec<T, Global>, Vec<usize, Global>) where
T: PartialOrd<T> + Copy,
Expand description
Merges two ascending sort indices. Data is not shuffled at all, v2 is just concatenated onto v1 in one go and both remain in their original order. Returns the concatenated vector and a new valid sort index into it.