fix off-by-one bug
parent
44c232a128
commit
ee5701dcda
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue