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