Fix which outer size we use.
Should be the same right now, but this is clearer.
This commit is contained in:
parent
9ba7ab5544
commit
3d482f0d52
@ -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(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()];
|
||||||
|
Loading…
Reference in New Issue
Block a user