I have two arrays F and P of the same dimension
F = np.array([[1, 4, 5],
[-5, 180, 9],
[200, 3, 7]])
P = np.array([[11, 3, 9],
[4, 2, 77],
[33, 4, 66]])
I want to divide each element F(i,j) of the matrix F with each element P(i,j) of the matrix P only where F(i,j)<100.
np.where(F<100)
(array([0, 0, 0, 1, 1, 2, 2]), array([0, 1, 2, 0, 2, 1, 2]))