I have 2 Numpy 2D arrays, both with the same shape. One of the arrays is boolean, the other is an array of numbers. For example, I may have arrays of the following form: