public void SolveMatrix10()
    {
      int i, j;
      double e, me;
      ComplexDoubleLevinson cdl = new ComplexDoubleLevinson(LC10, TR10);

      // check inverse
      ComplexDoubleMatrix I = cdl.Solve(ComplexDoubleMatrix.CreateIdentity(10));
      me = 0.0;
      for (i = 0; i < cdl.Order; i++)
      {
        for (j = 0; j < cdl.Order; j++)
        {
          e = ComplexMath.Absolute((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()
 {
   ComplexDoubleLevinson cdl = new ComplexDoubleLevinson(LC10, TR10);
   ComplexDoubleMatrix X = cdl.Solve(I5);
 }
 public void NullParameterTestforSolveMatrix()
 {
   ComplexDoubleLevinson cdl = new ComplexDoubleLevinson(LC10, TR10);
   ComplexDoubleMatrix X = cdl.Solve(null as ComplexDoubleMatrix);
 }
 public void SolveVector10()
 {
   int i;
   double e, me;
   ComplexDoubleLevinson cdl = new ComplexDoubleLevinson(LC10, TR10);
   ComplexDoubleVector X = cdl.Solve(Y10);
   
   // determine the maximum error
   me = 0.0;
   for (i = 0; i < cdl.Order; i++)
   {
     e = ComplexMath.Absolute((X10[i] - X[i]) / X10[i]);
     if (e > me)
     {
       me = e;
     }
   }
   Assert.IsTrue(me < Tolerance10, "Maximum Error = " + me.ToString());
 }
 public void MismatchRowsTestforSolveVector()
 {
   ComplexDoubleLevinson cdl = new ComplexDoubleLevinson(LC10, TR10);
   ComplexDoubleVector X = cdl.Solve(X5);
 }
 public void NullParameterTestforSolveVector()
 {
   ComplexDoubleLevinson cdl = new ComplexDoubleLevinson(LC10, TR10);
   ComplexDoubleVector X = cdl.Solve(null as ComplexDoubleVector);
 }