I have a numpy matrix A of size MxN of bool type. Than I have an array B of ROWSx2 that contains, in each row, a pair of coordinates x,y. I would like to find the list of coordinates of the matrix A whose index is contained in the array A and whose value is equal to True. I try with this command but it returns a 3d dimensional array and I don't understand why:I have a numpy matrix A of size MxN of bool typ