Fix formatting

This commit is contained in:
Ryan Pavlik 2021-12-23 11:47:02 -06:00 committed by phkahler
parent 6edeb66e3d
commit 8ab70c2c8d

View File

@ -257,14 +257,14 @@ bool System::SolveLeastSquares() {
} else { } else {
mat.scale[c] = 1; mat.scale[c] = 1;
} }
} }
int size = mat.A.sym.outerSize(); int size = mat.A.sym.outerSize();
for(int k = 0; k < size; k++) { for(int k = 0; k < size; k++) {
for(SparseMatrix<double>::InnerIterator it(mat.A.num, k); it; ++it) { for(SparseMatrix<double>::InnerIterator it(mat.A.num, k); it; ++it) {
it.valueRef() *= mat.scale[it.col()]; it.valueRef() *= mat.scale[it.col()];
}
} }
}
SparseMatrix<double> AAt = mat.A.num * mat.A.num.transpose(); SparseMatrix<double> AAt = mat.A.num * mat.A.num.transpose();
AAt.makeCompressed(); AAt.makeCompressed();