Skip to main content

get_group_indices

Function get_group_indices 

Source
pub fn get_group_indices(
    group_ids: &[usize],
    unique_groups: &[usize],
) -> (Vec<usize>, Vec<usize>)
Expand description

Extract indices of cells belonging to each of the two groups.

Returns a tuple of (group1_indices, group2_indices) where each vector contains the row/column indices of cells belonging to that group.