I have two numpy arrays with shapes A = (226, 250) and B = (195, 195, 250). I want to compute a new array C:
for i in range(A.shape[0]):
C = A[i, :].reshape(1, 1, -1) - B
Is there another way to calculate C without an iteration process?