From 2e8f850c78ab3280451548e7b05535ec531b0e42 Mon Sep 17 00:00:00 2001 From: David Tellenbach Date: Wed, 9 Dec 2020 14:48:24 +0100 Subject: Fix a typo in SparseMatrix documentation. This fixes issue #2091. --- Eigen/src/SparseCore/SparseMatrix.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Eigen/src/SparseCore') diff --git a/Eigen/src/SparseCore/SparseMatrix.h b/Eigen/src/SparseCore/SparseMatrix.h index 4e639d1f8..6e6cab3c0 100644 --- a/Eigen/src/SparseCore/SparseMatrix.h +++ b/Eigen/src/SparseCore/SparseMatrix.h @@ -1086,7 +1086,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(...) { // ... -- cgit v1.2.3