fix off-by-one bug
parent
44c232a128
commit
ee5701dcda
|
|
@ -102,7 +102,7 @@ SpMat sparseJacobianEigen(
|
||||||
}
|
}
|
||||||
|
|
||||||
// ...and make a sparse matrix with it.
|
// ...and make a sparse matrix with it.
|
||||||
SpMat Ab(row + 1, currentColIndex + 1);
|
SpMat Ab(row, currentColIndex + 1);
|
||||||
Ab.setFromTriplets(entries.begin(), entries.end());
|
Ab.setFromTriplets(entries.begin(), entries.end());
|
||||||
return Ab;
|
return Ab;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue