I have the following matrix:
[
[
16.0,
23251143833701.0,
3.3788480598465756e+25,
4.9101301394821435e+37
],
[
23251143833701.0,
3.3788480598465756e+25,
4.9101301394821435e+37,
7.135383882205603e+49
],
[
3.3788480598465756e+25,
4.9101301394821435e+37,
7.135383882205603e+ 49,
1.0369114809614645e+62
],
[
4.9101301394821435e+37,
7.135383882205603e+49,
1.0369114809614645e+62,
1.5068361241656833e+74
]
]
The determinant of this matrix is -1.4536774485912138e+135
, and if I call regular?
, it returns true
. However, when I call the method inverse
, Ruby raises the following exception:
matrix.rb:1079:in `block in inverse_from': Not Regular Matrix (ExceptionForMatrix::ErrNotRegular)
from matrix.rb:1069:in `upto'
from matrix.rb:1069:in `inverse_from'
from matrix.rb:1061:in `inverse'
What is the problem here?