Ejemplo n.º 1
0
 private void CopyMatrix(CopyOfMatrix other, int l)
 {
     for (int i = 0; i < n; i++)
     {
         for (int j = l; j < n; j++)
         {
             matrix[i, j] = other.matrix[i, j];
         }
     }
 }
Ejemplo n.º 2
0
 public Vector Solve(Vector b)
 {
     if (n != b.Count)
     {
         throw new Exception("CopyOfMatrix to b vector mismatch");
     }
     if (tMatrix == null)
     {
         tMatrix = new CopyOfMatrix(n);
         aOnStep = new CopyOfMatrix(n);
         bOnStep = new Vector(n);
         SolveFirstTime(b);
     }
     else
     {
         SolveAgain(b);
     }
     return(b);
 }