Skip to content

Commit 3d482f0

Browse files
rpavlikphkahler
authored andcommitted
Fix which outer size we use.
Should be the same right now, but this is clearer.
1 parent 9ba7ab5 commit 3d482f0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/system.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -264,7 +264,7 @@ bool System::SolveLeastSquares() {
264264
}
265265
}
266266

267-
int size = mat.A.sym.outerSize();
267+
const int size = mat.A.num.outerSize();
268268
for(int k = 0; k < size; k++) {
269269
for(SparseMatrix<double>::InnerIterator it(mat.A.num, k); it; ++it) {
270270
it.valueRef() *= mat.scale[it.col()];

0 commit comments

Comments
 (0)