Doc: add links and discourage user to write their own expression (better use CwiseNullaryOp)

This commit is contained in:
Gael Guennebaud
2016-08-30 15:57:46 +02:00
parent 1e2ab8b0b3
commit e7fbbc2748
3 changed files with 14 additions and 2 deletions

View File

@@ -1,11 +1,12 @@
namespace Eigen {
/** \page TopicCustomizing_NullaryExpr Manipulate matrices through nullary-expression
/** \page TopicCustomizing_NullaryExpr Matrix manipulation via nullary-expressions
The main purpose of the class CwiseNullaryOp is to define \em procedural matrices such as constant or random matrices as returned by the Ones(), Zero(), Constant(), Identity() and Random() methods.
Nevertheless, with some imagination it is possible to accomplish very sophisticated matrix manipulation with minimal efforts such that \ref TopicNewExpressionType "implementing new expression" is rarely needed.
\section NullaryExpr_Circulant
\section NullaryExpr_Circulant Example 1: circulant matrix
To explore these possibilities let us start with the \em circulant example of the \ref TopicNewExpressionType "implementing new expression" topic.
Let us recall that a circulant matrix is a matrix where each column is the same as the