diff --git a/src/system.cpp b/src/system.cpp index b0cb63f..873a8c9 100644 --- a/src/system.cpp +++ b/src/system.cpp @@ -257,14 +257,14 @@ bool System::SolveLeastSquares() { } else { mat.scale[c] = 1; } - } + } int size = mat.A.sym.outerSize(); for(int k = 0; k < size; k++) { for(SparseMatrix::InnerIterator it(mat.A.num, k); it; ++it) { it.valueRef() *= mat.scale[it.col()]; - } } + } SparseMatrix AAt = mat.A.num * mat.A.num.transpose(); AAt.makeCompressed();