Fix which outer size we use.

Should be the same right now, but this is clearer.
pull/1183/head
Ryan Pavlik 2021-12-23 13:06:24 -06:00 committed by phkahler
parent 9ba7ab5544
commit 3d482f0d52
1 changed files with 1 additions and 1 deletions

View File

@ -264,7 +264,7 @@ bool System::SolveLeastSquares() {
}
}
int size = mat.A.sym.outerSize();
const int size = mat.A.num.outerSize();
for(int k = 0; k < size; k++) {
for(SparseMatrix<double>::InnerIterator it(mat.A.num, k); it; ++it) {
it.valueRef() *= mat.scale[it.col()];