Suppose I have an array a, and a boolean array b, I want to extract a fixed number of elements from the valid elements in each row of a. T
a
b