public void SolveMatrix10() { int i, j; float e, me; FloatSymmetricLevinson fsl = new FloatSymmetricLevinson(T10); // check inverse FloatMatrix I = fsl.Solve(FloatMatrix.CreateIdentity(10)); me = 0.0f; for (i = 0; i < fsl.Order; i++) { for (j = 0; j < fsl.Order; j++) { e = System.Math.Abs((I10[i, j] - I[i, j]) / I10[i, j]); if (e > me) { me = e; } } } Assert.IsTrue(me < Tolerance10, "Maximum Error = " + me.ToString()); }
public void MismatchRowsTestforSolveMatrix() { FloatSymmetricLevinson fsl = new FloatSymmetricLevinson(T10); FloatMatrix X = fsl.Solve(I5); }
public void NullParameterTestforSolveMatrix() { FloatSymmetricLevinson fsl = new FloatSymmetricLevinson(T10); FloatMatrix X = fsl.Solve(null as FloatMatrix); }
public void SolveVector10() { int i; float e, me; FloatSymmetricLevinson fsl = new FloatSymmetricLevinson(T10); FloatVector X = fsl.Solve(Y10); // determine the maximum error me = 0.0f; for (i = 0; i < fsl.Order; i++) { e = System.Math.Abs((X10[i] - X[i]) / X10[i]); if (e > me) { me = e; } } Assert.IsTrue(me < Tolerance10, "Maximum Error = " + me.ToString()); }
public void MismatchRowsTestforSolveVector() { FloatSymmetricLevinson fsl = new FloatSymmetricLevinson(T10); FloatVector X = fsl.Solve(X5); }
public void NullParameterTestforSolveVector() { FloatSymmetricLevinson fsl = new FloatSymmetricLevinson(T10); FloatVector X = fsl.Solve(null as FloatVector); }