aboutsummaryrefslogtreecommitdiffhomepage
path: root/Eigen/src/Core/Random.h
diff options
context:
space:
mode:
authorGravatar Gael Guennebaud <g.gael@free.fr>2014-01-07 20:23:35 +0100
committerGravatar Gael Guennebaud <g.gael@free.fr>2014-01-07 20:23:35 +0100
commit92190a1cafc3a8613e1200cd4ed81dbc509a93bd (patch)
tree43084ae6898fa9bd36e5d71363cc8dcdf8ca0a6c /Eigen/src/Core/Random.h
parentac409f51f185a4654f9a5c38ab5d1652824836f6 (diff)
Add an example showing how to use C++11 random distributions
Diffstat (limited to 'Eigen/src/Core/Random.h')
-rw-r--r--Eigen/src/Core/Random.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/Eigen/src/Core/Random.h b/Eigen/src/Core/Random.h
index a4492ddb6..fdd43ed0c 100644
--- a/Eigen/src/Core/Random.h
+++ b/Eigen/src/Core/Random.h
@@ -48,6 +48,8 @@ struct functor_traits<scalar_random_op<Scalar> >
* a temporary matrix whenever it is nested in a larger expression. This prevents unexpected
* behavior with expressions involving random matrices.
*
+ * See DenseBase::NullaryExpr(Index, const CustomNullaryOp&) for an example using C++11 random generators.
+ *
* \sa DenseBase::setRandom(), DenseBase::Random(Index), DenseBase::Random()
*/
template<typename Derived>