public void GetInverseSingularTest() { DoubleMatrix a = new DoubleMatrix(3, 3); DoubleLUDecomp dlu = new DoubleLUDecomp(a); dlu.GetInverse(); }
public void GetInverseTest() { DoubleMatrix inv = lu.GetInverse(); Assert.AreEqual(inv[0, 0], -0.195584, TOLERENCE); Assert.AreEqual(inv[0, 1], 0.009464, TOLERENCE); Assert.AreEqual(inv[0, 2], 0.129338, TOLERENCE); Assert.AreEqual(inv[1, 0], -0.066246, TOLERENCE); Assert.AreEqual(inv[1, 1], -0.141956, TOLERENCE); Assert.AreEqual(inv[1, 2], 0.059937, TOLERENCE); Assert.AreEqual(inv[2, 0], 0.189274, TOLERENCE); Assert.AreEqual(inv[2, 1], 0.119874, TOLERENCE); Assert.AreEqual(inv[2, 2], -0.028391, TOLERENCE); }
public void GetInverseSingularTest() { DoubleMatrix a = new DoubleMatrix(3,3); DoubleLUDecomp dlu = new DoubleLUDecomp(a); dlu.GetInverse(); }