From c10a0ee7347b24e301277b24d1221a9711736ed7 Mon Sep 17 00:00:00 2001
From: PBerger <philipp.berger@rwth-aachen.de>
Date: Mon, 17 Sep 2012 19:00:39 +0200
Subject: [PATCH] Fixed two typos in src/sparse/static_sparse_matrix.h

---
 src/sparse/static_sparse_matrix.h | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/sparse/static_sparse_matrix.h b/src/sparse/static_sparse_matrix.h
index 83a46872a..b3b3f71b5 100644
--- a/src/sparse/static_sparse_matrix.h
+++ b/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;
@@ -210,10 +210,10 @@ class StaticSparseMatrix {
 			}
 		}
 		for (uint_fast32_t i = 1; i <= row_count; ++i) {
-			tripletList .push_back(ETd(i, i, diagonal_storage[i]));
+			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();