Registered Member
|
Hello,
currently I wan to use Eigen for an adjustment program and quadruple precision is a formal requirement. The Intel compiler is avaliable and compiles programs using _Quad without problems when I am not using Eigen. For example: Eigen::Matrix< _Quad, 2, 2 > m; results in a huge amount of errors. I checked out the example for adouble: http://eigen.tuxfamily.org/dox-devel/To ... ScalarType but I cannot figure out howto adapt it to the simple type _Quad. Has somebody already solved this? Thanks in advance, Sebastian |
Moderator
|
In theory you should only have to specialize NumTraits assuming standard operators (*, +, -, /, sqrt, etc.) are defined on _Quad.
template<> struct NumTraits<_Quad> { typedef _Quad Real; typedef _Quad NonInteger; typedef _Quad Nested; enum { IsComplex = 0, IsInteger = 0, IsSigned = 1, ReadCost = 2, AddCost = 2, MulCost = 2 }; }; |
Registered users: Bing [Bot], Google [Bot], Yahoo [Bot]