diff options
author | 2010-04-28 18:51:38 -0400 | |
---|---|---|
committer | 2010-04-28 18:51:38 -0400 | |
commit | e2775869588e1df2d19265eac5c167651168a414 (patch) | |
tree | 8ca0d2fdbc1f8945405fb3fd99c5634b60f3189f /doc/I00_CustomizingEigen.dox | |
parent | 4f83d6ad1959f3c76cd5eb328ec65ced4ca4f339 (diff) |
Complete rework of global math functions and NumTraits.
* Now completely generic so all standard integer types (like char...) are supported.
** add unit test for that (integer_types).
* NumTraits does no longer inherit numeric_limits
* All math functions are now templated
* Better guard (static asserts) against using certain math functions on integer types.
Diffstat (limited to 'doc/I00_CustomizingEigen.dox')
-rw-r--r-- | doc/I00_CustomizingEigen.dox | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/doc/I00_CustomizingEigen.dox b/doc/I00_CustomizingEigen.dox index 7e6d16de6..afeaabe47 100644 --- a/doc/I00_CustomizingEigen.dox +++ b/doc/I00_CustomizingEigen.dox @@ -142,10 +142,13 @@ namespace Eigen { template<> struct NumTraits<adtl::adouble> { typedef adtl::adouble Real; - typedef adtl::adouble FloatingPoint; + typedef adtl::adouble NonInteger; + typedef adtl::adouble Nested; + enum { IsComplex = 0, - HasFloatingPoint = 1, + IsInteger = 0, + IsSigned, ReadCost = 1, AddCost = 1, MulCost = 1 |