if A is a nxn matrix, then in octave, pinv(A) represent inverse of A. pinv(A)*A should then yield Identity matrix I(n). But the following code is not working.
A=[ 1 2 3,
4 5 6,
7 8 9];
pinv(A)*A
0.83333 0.33333 -0.16667
0.33333 0.33333 0.33333
-0.16667 0.33333 0.83333
The diagonal elements , (pinv(A)*(A))[i,i] for i=1,2,3 are not even near to one.What went wrong?