From 121ada24f90f98a61fdc0c4fd4ae41ff88f46cd8 Mon Sep 17 00:00:00 2001 From: EdwardEisenhauer Date: Sat, 13 Mar 2021 21:17:25 +0100 Subject: [PATCH] P works just fine --- .../Alg8.m | 20 ------------------- 1 file changed, 20 deletions(-) diff --git a/Direct Methods for Solving Linear Systems/Alg8.m b/Direct Methods for Solving Linear Systems/Alg8.m index 82666be..c12574a 100644 --- a/Direct Methods for Solving Linear Systems/Alg8.m +++ b/Direct Methods for Solving Linear Systems/Alg8.m @@ -18,26 +18,6 @@ for k = 1:m end end -% TODO: Permutation A*P does not work - - -% -% for i = m + 1 : M -% A(i:end, m+1:end); % Partial matrix (in which we are looking for non-zero pivots) -% A(i:end, m+1); % Left-most column -% if ~any(A(i:end, m+1)) % If the left-most column has only zeros check the next one -% m = m + 1; -% end -% A(i:end, m+1:end); -% if A(i, m+1) == 0 -% non_zero_row = find(A(i:end,m+1), 1); -% if isempty(non_zero_row) -% continue -% end -% A([i, i+non_zero_row-1], :) = deal(A([i+non_zero_row-1, i], :)); -% end -% end - for k = 1:n for j = k : n