Comment Re:Eigenmath (Score 1) 776
It may look like it is calculating something impossible; however, I believe it is actually taking a shortcut. Its assuming that you want to take the dot product of two vectors.
You can confirm this by using letters instead of numbers.
X=(a,b)
X*X
a^2 + b^2
Y=(c,d)
dot(X,Y)
ac + bd
I believe MATLAB has similar "shortcuts" that you have to be careful of.
If you're worried, it does in fact check the matrix dimensions:
Z=((a,b),(c,d),(et,f))
dot(Z,Z)
Stop: inner: tensor dimension check
dot(transpose(Z),Z)
[ displays a large, correct matrix