Skip to content

Commit

Permalink
Merge pull request #485 from sofa-framework/warningRemovalMapMapSpars…
Browse files Browse the repository at this point in the history
…eMatrixEigenUtils

remove warning generated by MapMapSparseMatrixEigenUtils
  • Loading branch information
guparan committed Oct 23, 2017
2 parents a61f147 + fbf30d1 commit 0ffcd22
Showing 1 changed file with 1 addition and 3 deletions.
Expand Up @@ -125,7 +125,6 @@ struct EigenSparseToMapMapSparseMatrixVec

int i = 0;
const int* colPtr = innerIndexPtr + offset;
const Real* valPtr = valuePtr + offset;
int blockIndex = *colPtr / TVec::size();
int blockOffset = *colPtr - (blockIndex * TVec::size());

Expand All @@ -134,7 +133,6 @@ struct EigenSparseToMapMapSparseMatrixVec
{
TVec val;
int currentBlockIndex = blockIndex;
int currentCol = *colPtr;
while (currentBlockIndex == blockIndex && i != rowNonZeros)
{
val[blockOffset] = *valuePtr;
Expand Down Expand Up @@ -253,4 +251,4 @@ void addMultTransposeEigen(MapMapSparseMatrix<LhsDeriv>& lhs, const Eigen::Spars

}

}
}

0 comments on commit 0ffcd22

Please sign in to comment.