mirror of
https://github.com/kuhyx/WUT_Computer_Science.git
synced 2026-07-04 16:23:11 +02:00
8 lines
358 B
Matlab
8 lines
358 B
Matlab
function x = improveSolution(x, new_euclideanColumnsormOfR, euclideanColumnsormOfR, Matrix, Vector)
|
|
while new_euclideanColumnsormOfR <= euclideanColumnsormOfR
|
|
euclideanColumnsormOfR = new_euclideanColumnsormOfR;
|
|
r = Matrix*x - Vector;
|
|
x = x - r;
|
|
new_euclideanColumnsormOfR = norm(r);
|
|
end % end while
|
|
end % end function |