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]; } } }
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); }