numeric
numeric copied to clipboard
Bug in 'numeric.inv()'
Computing "numeric.inv([[8,9,8,9], [5,6,5,6], [8,9,8,9], [5,6,5,6]]);" results in an error: "TypeError: Aj is undefined"
This matrix is not invertible; it seems to work when the matrix is invertible. Nevertheless, I will change this behavior.
what about calculating the pseudo inverse?
>>> import numpy.linalg
l
>>> numpy.linalg.pinv([[8,9,8,9], [5,6,5,6], [8,9,8,9], [5,6,5,6]])
array([[ 0.5 , -0.75 , 0.5 , -0.75 ],
[-0.41666667, 0.66666667, -0.41666667, 0.66666667],
[ 0.5 , -0.75 , 0.5 , -0.75 ],
[-0.41666667, 0.66666667, -0.41666667, 0.66666667]])
>>>
Try this: http://www.numericjs.com/workshop.php?link=b923cdeb84e188a11b44e3e82e44897b3b7da1d6640ddb46ab7330a6625f8e19