Browse Source

Fixed two typos in src/sparse/static_sparse_matrix.h

tempestpy_adaptions
PBerger 12 years ago
parent
commit
c10a0ee734
  1. 4
      src/sparse/static_sparse_matrix.h

4
src/sparse/static_sparse_matrix.h

@ -197,7 +197,7 @@ class StaticSparseMatrix {
Eigen::SparseMatrix<T> toEigenSparseMatrix() {
typedef Eigen::Triplet<double> ETd;
std::vector<ETd> tripletList;
triplets.reserve(non_zero_entry_count + row_count);
tripletList.reserve(non_zero_entry_count + row_count);
uint_fast32_t row_start;
uint_fast32_t row_end;
@ -213,7 +213,7 @@ class StaticSparseMatrix {
tripletList.push_back(ETd(i, i, diagonal_storage[i]));
}
SparseMatrixType mat(row_count, row_count);
Eigen::SparseMatrix<T> mat(row_count, row_count);
mat.setFromTriplets(tripletList.begin(), tripletList.end());
mat.makeCompressed();

Loading…
Cancel
Save