From a36d19c4fc46097da9dd9965e7d548aa05d2cbf8 Mon Sep 17 00:00:00 2001 From: David Tellenbach Date: Wed, 9 Dec 2020 14:48:24 +0100 Subject: [PATCH] Fix a typo in SparseMatrix documentation. This fixes issue #2091. (cherry picked from commit 2e8f850c78ab3280451548e7b05535ec531b0e42) --- Eigen/src/SparseCore/SparseMatrix.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Eigen/src/SparseCore/SparseMatrix.h b/Eigen/src/SparseCore/SparseMatrix.h index a5396538b..9a6106df1 100644 --- a/Eigen/src/SparseCore/SparseMatrix.h +++ b/Eigen/src/SparseCore/SparseMatrix.h @@ -974,7 +974,7 @@ void set_from_triplets(const InputIterator& begin, const InputIterator& end, Spa * \code typedef Triplet T; std::vector tripletList; - triplets.reserve(estimation_of_entries); + tripletList.reserve(estimation_of_entries); for(...) { // ...