I have a 2d matrix of type ndarray::Array2, named matrix, and another vector named vec, vec contains all the indices of rows in matrix that need to be tossed.
I now need a new matrix, which contains all the rows except whose indices is in vec.
I don't have much experience with the ndarray crate, but I would suggest using an iterator to filter to rows you want to keep. Something around those lines.