CppADCodeGen 2.4.3
A C++ Algorithmic Differentiation Package with Source Code Generation
Loading...
Searching...
No Matches
Eigen::NumTraits< CppAD::cg::CG< Base > > Struct Template Reference

#include <cppadcg_eigen.hpp>

Collaboration diagram for Eigen::NumTraits< CppAD::cg::CG< Base > >:
Collaboration graph

Public Types

enum  {
  IsComplex = 0 , IsInteger = 0 , IsSigned = 1 , RequireInitialization = 1 ,
  ReadCost = 1 , AddCost = 2 , MulCost = 2
}
 
using Real = CppAD::cg::CG< Base >
 
using NonInteger = CppAD::cg::CG< Base >
 
using Nested = CppAD::cg::CG< Base >
 
using Literal = CppAD::cg::CG< Base >
 

Static Public Member Functions

static CppAD::cg::CG< Base > epsilon ()
 
static CppAD::cg::CG< Base > dummy_precision ()
 
static CppAD::cg::CG< Base > lowest ()
 
static CppAD::cg::CG< Base > highest ()
 
static int digits10 ()
 

Detailed Description

template<typename Base>
struct Eigen::NumTraits< CppAD::cg::CG< Base > >

NumTraits specialization for the eigen library (3.3). This is required so that the type CG<Base> works properly with eigen. See Eigen/src/Core/NumTraits.h

Definition at line 32 of file cppadcg_eigen.hpp.

Member Typedef Documentation

◆ Literal

template<typename Base >
using Eigen::NumTraits< CppAD::cg::CG< Base > >::Literal = CppAD::cg::CG<Base>

Definition at line 40 of file cppadcg_eigen.hpp.

◆ Nested

template<typename Base >
using Eigen::NumTraits< CppAD::cg::CG< Base > >::Nested = CppAD::cg::CG<Base>

Definition at line 38 of file cppadcg_eigen.hpp.

◆ NonInteger

template<typename Base >
using Eigen::NumTraits< CppAD::cg::CG< Base > >::NonInteger = CppAD::cg::CG<Base>

Definition at line 36 of file cppadcg_eigen.hpp.

◆ Real

template<typename Base >
using Eigen::NumTraits< CppAD::cg::CG< Base > >::Real = CppAD::cg::CG<Base>

Definition at line 34 of file cppadcg_eigen.hpp.

Member Enumeration Documentation

◆ anonymous enum

template<typename Base >
anonymous enum

Definition at line 42 of file cppadcg_eigen.hpp.

Member Function Documentation

◆ digits10()

template<typename Base >
static int Eigen::NumTraits< CppAD::cg::CG< Base > >::digits10 ( )
inlinestatic

the number of decimal digits that can be represented without change

Definition at line 90 of file cppadcg_eigen.hpp.

◆ dummy_precision()

template<typename Base >
static CppAD::cg::CG< Base > Eigen::NumTraits< CppAD::cg::CG< Base > >::dummy_precision ( )
inlinestatic

relaxed version of machine epsilon for comparison of different operations that should result in the same value*

Definition at line 69 of file cppadcg_eigen.hpp.

◆ epsilon()

template<typename Base >
static CppAD::cg::CG< Base > Eigen::NumTraits< CppAD::cg::CG< Base > >::epsilon ( )
inlinestatic

machine epsilon with type of real part of x (use assumption that Base is not complex)

Definition at line 61 of file cppadcg_eigen.hpp.

◆ highest()

template<typename Base >
static CppAD::cg::CG< Base > Eigen::NumTraits< CppAD::cg::CG< Base > >::highest ( )
inlinestatic

maximum finite value

Definition at line 83 of file cppadcg_eigen.hpp.

◆ lowest()

template<typename Base >
static CppAD::cg::CG< Base > Eigen::NumTraits< CppAD::cg::CG< Base > >::lowest ( )
inlinestatic

minimum normalized positive value

Definition at line 76 of file cppadcg_eigen.hpp.


The documentation for this struct was generated from the following file: