From f92567fecc02f7653c5974ed9b162e49a813dc0c Mon Sep 17 00:00:00 2001 From: Gael Guennebaud Date: Wed, 20 Sep 2017 10:22:23 +0200 Subject: [PATCH] Add link to a useful example. --- Eigen/src/plugins/IndexedViewMethods.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Eigen/src/plugins/IndexedViewMethods.h b/Eigen/src/plugins/IndexedViewMethods.h index 215bd0530..a7ec63adf 100644 --- a/Eigen/src/plugins/IndexedViewMethods.h +++ b/Eigen/src/plugins/IndexedViewMethods.h @@ -248,6 +248,8 @@ operator()(const IndicesT (&indices)[IndicesN]) EIGEN_INDEXED_VIEW_METHOD_CONST * * For 1D vectors and arrays, you better use the operator()(const Indices&) overload, which behave the same way but taking a single parameter. * + * See also this question and its answer for an example of how to duplicate coefficients. + * * \sa operator()(const Indices&), class Block, class IndexedView, DenseBase::block(Index,Index,Index,Index) */ template