pub fn filter_rows<T: Scalar>(
mat: &DMatrix<T>,
mask: &[bool],
keep: bool,
) -> (DMatrix<T>, Vec<i32>, Vec<i32>)Expand description
returns the rows of mat where mask==keep returns the filtered rows and also a matrix of orig2filtered and filtered2orig which maps from original row indices to filtered ones and viceversa (-1 denotes a invalid index)