From e7fbbc2748dac4addbc429e053ead795968d86c6 Mon Sep 17 00:00:00 2001 From: Gael Guennebaud Date: Tue, 30 Aug 2016 15:57:46 +0200 Subject: Doc: add links and discourage user to write their own expression (better use CwiseNullaryOp) --- doc/NewExpressionType.dox | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'doc/NewExpressionType.dox') diff --git a/doc/NewExpressionType.dox b/doc/NewExpressionType.dox index c2e78bfee..c2f243312 100644 --- a/doc/NewExpressionType.dox +++ b/doc/NewExpressionType.dox @@ -2,6 +2,12 @@ namespace Eigen { /** \page TopicNewExpressionType Adding a new expression type + +\warning +Disclaimer: this page is tailored to very advanced users who are not afraid of dealing with some %Eigen's internal aspects. +In most cases, a custom expression can be avoided by either using custom \ref MatrixBase::unaryExpr "unary" or \ref MatrixBase::binaryExpr "binary" functors, +while extremely complex matrix manipulations can be achieved by a nullary functors as described in the \ref TopicCustomizing_NullaryExpr "previous page". + This page describes with the help of an example how to implement a new light-weight expression type in %Eigen. This consists of three parts: the expression type itself, a traits class containing compile-time -- cgit v1.2.3