I try to repeat the example of calculation of pseudo inverse matrix from lectures:
I use this code
from numpy import *
# https://classes.soe.ucsc.edu/cmps290c/Spring04/paps/lls.pdf
x = np.array([[-11, 2],[2, 3],[2, -1]])
print(x)
# computing the inverse using pinv
a = linalg.pinv(x)
print(a)
My result of the calculation differs from the result in the lecture.
My result:
[[-0.07962213 0.05533063 0.00674764]
[ 0.04048583 0.2854251 -0.06275304]]
The result form lecture:
[[-0.148 0.180 0.246]
[ 0.164 0.189 -0.107]]
What am I doing wrong? Tell me please!