fix off-by-one bug

release/4.3a0
Gerry Chen 2021-01-18 20:39:53 -05:00
parent 44c232a128
commit ee5701dcda
1 changed files with 1 additions and 1 deletions

View File

@ -102,7 +102,7 @@ SpMat sparseJacobianEigen(
}
// ...and make a sparse matrix with it.
SpMat Ab(row + 1, currentColIndex + 1);
SpMat Ab(row, currentColIndex + 1);
Ab.setFromTriplets(entries.begin(), entries.end());
return Ab;
}