Skip to content

Commit

Permalink
Merge branch '63-gmres-e' of https://github.com/nidtec-una/krysbas-dev
Browse files Browse the repository at this point in the history
…into 63-gmres-e
  • Loading branch information
jhabriel committed Sep 11, 2024
2 parents 419973b + 69e9a1a commit 7c31f3d
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/gmres_e.m
Original file line number Diff line number Diff line change
Expand Up @@ -320,8 +320,10 @@
gs = g(1:s);
minimizer = Rs \ gs;

% Re-write last k vectors???
V(:, m + 1:s) = dy(:, 1:d);
% Replace last k vectors from matrix V with the approximate
% eigenvectors, and compute the new approximate solution, as done
% in step 4, p. 1161 of [1].
V(:, m + 1:s) = dy(:, 1:k);
x = xm + V * minimizer;

% Update residual norm, iterations, and relative residual vector
Expand Down

0 comments on commit 7c31f3d

Please sign in to comment.