Browse Source

fixing toEigen conversion, making test case working :-)

tempestpy_adaptions
gereon 12 years ago
parent
commit
8cbb7aa7d7
  1. 2
      src/storage/SquareSparseMatrix.h

2
src/storage/SquareSparseMatrix.h

@ -517,7 +517,7 @@ public:
// Then add the elements on the diagonal. // Then add the elements on the diagonal.
for (uint_fast64_t i = 0; i < rowCount; ++i) { for (uint_fast64_t i = 0; i < rowCount; ++i) {
if (diagonalStorage[i] == 0) zeroCount++; if (diagonalStorage[i] == 0) zeroCount++;
// tripletList.push_back(IntTriplet(i, i, diagonalStorage[i]));
tripletList.push_back(IntTriplet(i, i, diagonalStorage[i]));
} }
// Let Eigen create a matrix from the given list of triplets. // Let Eigen create a matrix from the given list of triplets.

Loading…
Cancel
Save