aboutsummaryrefslogtreecommitdiffhomepage
path: root/Eigen/src/Core/CwiseNullaryOp.h
diff options
context:
space:
mode:
authorGravatar Gael Guennebaud <g.gael@free.fr>2008-07-19 20:36:41 +0000
committerGravatar Gael Guennebaud <g.gael@free.fr>2008-07-19 20:36:41 +0000
commit6e2c53e0562785f2f8c72a67dd8c40451cf2a319 (patch)
tree1a71796fb7d7b3074c73a8b7ce9bbdd44fde3a05 /Eigen/src/Core/CwiseNullaryOp.h
parent05ad0834676b7f375df7fd33d90a7db871787330 (diff)
Added an automatically generated list of selected examples in the documentation.
Added the custom gemetry_module tag, and use it.
Diffstat (limited to 'Eigen/src/Core/CwiseNullaryOp.h')
-rw-r--r--Eigen/src/Core/CwiseNullaryOp.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/Eigen/src/Core/CwiseNullaryOp.h b/Eigen/src/Core/CwiseNullaryOp.h
index 3cf9070e2..6df351201 100644
--- a/Eigen/src/Core/CwiseNullaryOp.h
+++ b/Eigen/src/Core/CwiseNullaryOp.h
@@ -261,6 +261,8 @@ Derived& MatrixBase<Derived>::setConstant(const Scalar& value)
* it is redundant to pass \a rows and \a cols as arguments, so zero() should be used
* instead.
*
+ * \addexample Zero \label How to take get a zero matrix
+ *
* Example: \include MatrixBase_zero_int_int.cpp
* Output: \verbinclude MatrixBase_zero_int_int.out
*
@@ -356,6 +358,8 @@ Derived& MatrixBase<Derived>::setZero()
* it is redundant to pass \a rows and \a cols as arguments, so ones() should be used
* instead.
*
+ * \addexample One \label How to get a matrix with all coefficients equal one
+ *
* Example: \include MatrixBase_ones_int_int.cpp
* Output: \verbinclude MatrixBase_ones_int_int.out
*
@@ -446,6 +450,8 @@ Derived& MatrixBase<Derived>::setOnes()
* This variant is meant to be used for dynamic-size matrix types. For fixed-size types,
* it is redundant to pass \a rows and \a cols as arguments, so identity() should be used
* instead.
+ *
+ * \addexample Identity \label How to get an identity matrix
*
* Example: \include MatrixBase_identity_int_int.cpp
* Output: \verbinclude MatrixBase_identity_int_int.out