aboutsummaryrefslogtreecommitdiffhomepage
path: root/Eigen/src/SparseCore
diff options
context:
space:
mode:
authorGravatar David Tellenbach <david.tellenbach@me.com>2020-12-09 14:48:24 +0100
committerGravatar David Tellenbach <david.tellenbach@me.com>2020-12-09 14:48:24 +0100
commit2e8f850c78ab3280451548e7b05535ec531b0e42 (patch)
tree96dff80853b7c07af2df44e848da9a943f37b3ec /Eigen/src/SparseCore
parent125cc9a5df6074756b89ea8aaa4e9a4b44b0f7e9 (diff)
Fix a typo in SparseMatrix documentation.
This fixes issue #2091.
Diffstat (limited to 'Eigen/src/SparseCore')
-rw-r--r--Eigen/src/SparseCore/SparseMatrix.h2
1 files changed, 1 insertions, 1 deletions
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<double> T;
std::vector<T> tripletList;
- triplets.reserve(estimation_of_entries);
+ tripletList.reserve(estimation_of_entries);
for(...)
{
// ...