return c
A = np.array([[1, 1, 1], [1, 1, 1], [1, 1, 1]])
B = np.array([[34, 100, 15], [62, 17, 87], [17, 34, 60]])
x = np.ravel(A).reshape((9, 1))
y = np.ravel(B).reshape((9, 1))
P_a = np.eye(9) * 50
P_b = covariance(dist(B), 2)
K = P_a.dot(np.linalg.inv(P_a + P_b))
x_new = x + K.dot(y - x)
A_new = x_new.reshape(A.shape)
print(A)
print(B)
print(A_new)
Interpolating 2 numpy arrays