Beispiel #1
0
        public void GetInverseSingularTest()
        {
            FloatMatrix   a   = new FloatMatrix(3, 3);
            FloatLUDecomp dlu = new FloatLUDecomp(a);

            dlu.GetInverse();
        }
Beispiel #2
0
        public void GetInverseTest()
        {
            FloatMatrix 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);
        }
Beispiel #3
0
		public void GetInverseSingularTest()
		{
			FloatMatrix a = new FloatMatrix(3, 3);
			FloatLUDecomp dlu = new FloatLUDecomp(a);
			dlu.GetInverse();
		}