I have a numpy matrix consisting of binary values. I have a list of row indices as well. Now I have to obtain indices from the matrix where the value for a particular column