From e2775869588e1df2d19265eac5c167651168a414 Mon Sep 17 00:00:00 2001 From: Benoit Jacob Date: Wed, 28 Apr 2010 18:51:38 -0400 Subject: 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. --- unsupported/Eigen/AdolcForward | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'unsupported/Eigen/AdolcForward') diff --git a/unsupported/Eigen/AdolcForward b/unsupported/Eigen/AdolcForward index 70aa47815..8f1a00d20 100644 --- a/unsupported/Eigen/AdolcForward +++ b/unsupported/Eigen/AdolcForward @@ -103,10 +103,12 @@ namespace Eigen { template<> struct NumTraits { typedef adtl::adouble Real; - typedef adtl::adouble FloatingPoint; + typedef adtl::adouble NonInteger; + typedef adtl::adouble Nested; enum { IsComplex = 0, - HasFloatingPoint = 1, + IsInteger = 0, + IsSigned = 1, ReadCost = 1, AddCost = 1, MulCost = 1 -- cgit v1.2.3