TMB Documentation  v1.9.11
eigen_numtraits.hpp
1 #ifndef HAVE_EIGEN_NUMTRAITS_HPP
2 #define HAVE_EIGEN_NUMTRAITS_HPP
3 // Autogenerated - do not edit by hand !
4 #include <Eigen/Core>
5 #include "global.hpp"
6 
7 namespace Eigen {
8 
9 template <>
10 struct NumTraits<TMBad::ad_aug> : NumTraits<TMBad::Scalar> {
11  typedef TMBad::ad_aug Real;
12  typedef TMBad::ad_aug NonInteger;
13  typedef TMBad::ad_aug Nested;
14 };
15 
16 template <>
17 struct NumTraits<TMBad::ad_adapt> : NumTraits<TMBad::Scalar> {
18  typedef TMBad::ad_adapt Real;
19  typedef TMBad::ad_adapt NonInteger;
20  typedef TMBad::ad_adapt Nested;
21 };
22 
23 template <typename BinOp>
24 struct ScalarBinaryOpTraits<TMBad::ad_aug, TMBad::Scalar, BinOp> {
25  typedef TMBad::ad_aug ReturnType;
26 };
27 template <typename BinOp>
28 struct ScalarBinaryOpTraits<TMBad::Scalar, TMBad::ad_aug, BinOp> {
29  typedef TMBad::ad_aug ReturnType;
30 };
31 
32 } // namespace Eigen
33 #endif // HAVE_EIGEN_NUMTRAITS_HPP
Automatic differentiation library designed for TMB.
Definition: TMB.hpp:157
Enable weak comparison operators of an ad type.
Definition: global.hpp:2969
Augmented AD type.
Definition: global.hpp:2831
License: GPL v2