Skip to content

Commit

Permalink
CLEANUP Brought up to date with Eigen3.
Browse files Browse the repository at this point in the history
  • Loading branch information
Bowie Owens committed Jul 7, 2022
1 parent f4e35be commit 5d71820
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/bsplinebasis.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -118,8 +118,8 @@ SparseMatrix BSplineBasis::evalBasisJacobian(DenseVector &x) const
SparseVector Ji = kroneckerProductVectors(values);

// Fill out column
for (int k = 0; k < Ji.outerSize(); ++k)
for (SparseMatrix::InnerIterator it(Ji,k); it; ++it)
assert(Ji.outerSize() == 1);
for (SparseVector::InnerIterator it(Ji); it; ++it)
{
if (it.value() != 0)
J.insert(it.row(),i) = it.value();
Expand Down

0 comments on commit 5d71820

Please sign in to comment.