Fix various compiler warnings

This commit is contained in:
Pieter Hijma
2024-06-27 20:45:29 +02:00
parent d50532d3e7
commit 2b48cda825
18 changed files with 36 additions and 29 deletions

View File

@@ -160,7 +160,7 @@ void LDUFullMat::backSubstituteIntoDU()
{
auto& rowi = matrixA->at(i);
double sum = answerX->at((size_t)n - 1) * rowi->at((size_t)n - 1);
for (int j = i + 1; j < n - 1; j++)
for (int j = i + 1; j < (int)n - 1; j++)
{
sum += answerX->at(j) * rowi->at(j);
}