summaryrefslogtreecommitdiff
path: root/content/math/gauss.cpp
diff options
context:
space:
mode:
authorGloria Mundi <gloria@gloria-mundi.eu>2024-11-16 21:17:29 +0100
committerGloria Mundi <gloria@gloria-mundi.eu>2024-11-16 21:17:29 +0100
commit1880ccb6d85c6eb79e724593457877bab431951c (patch)
tree23eddd5bd0b29b3024e170a5ef9023eda9226ab5 /content/math/gauss.cpp
parente95f59debd69ee7d45d5c966ce466d23264e1c3c (diff)
get rid of all() and sz()
Diffstat (limited to 'content/math/gauss.cpp')
-rw-r--r--content/math/gauss.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/content/math/gauss.cpp b/content/math/gauss.cpp
index d431e52..719f573 100644
--- a/content/math/gauss.cpp
+++ b/content/math/gauss.cpp
@@ -7,7 +7,7 @@ void takeAll(int n, int line) {
for (int i = 0; i < n; i++) {
if (i == line) continue;
double diff = mat[i][line];
- for (int j = 0; j < sz(mat[i]); j++) {
+ for (int j = 0; j < ssize(mat[i]); j++) {
mat[i][j] -= diff * mat[line][j];
}}}
@@ -22,7 +22,7 @@ int gauss(int n) {
if (abs(mat[i][i]) > EPS) {
normalLine(i);
takeAll(n, i);
- done[i] = true;
+ done[i] = true;
}}
for (int i = 0; i < n; i++) { // gauss fertig, prüfe Lösung
bool allZero = true;