I have a problem. I have two arrays with the size of 82248x20 and if i do the following in Matlab
A=X'*Y
it will give me 6.152847328855238e-18 for the second value. If i do it in Python with anything like
test=scipy.io.loadmat('wohin.mat')
X=test['X']
Y=test['Y']
A=np.transpose(X)@Y
A=np.dot(np.transpose(X),Y)
A=np.matmul(np.transpose(X),Y)
i get the value 1.9233746539892849e-16 for the second value and if i do the calculation with
for i in range(0,82248):
t=t+np.transpose(Y)[0,i]*X[i,1]
i get 3.3664996263355106e-15 for the second value of row one. So where is my misunderstanding or the difference between the three methods. The last one has some rounding errors perhaps, but the two other ones should give me the same result or not?