Sacado Package Browser (Single Doxygen Collection) Version of the Day
Loading...
Searching...
No Matches
Classes | Macros | Typedefs | Functions | Variables
hesopcheck.cpp File Reference
#include <cstdio>
#include <float.h>
#include "Sacado_DisableKokkosCuda.hpp"
#include "Sacado_MathFunctions.hpp"
#include "Sacado_trad.hpp"
#include "Sacado_trad2.hpp"
#include "Sacado_rad2.hpp"
#include "Sacado_Fad_SFad.hpp"
Include dependency graph for hesopcheck.cpp:

Go to the source code of this file.

Classes

struct  Func4
 
struct  Func42
 

Macros

#define UF(T, f, fn)   T fn(T &x) { return f(x); }
 
#define UF4(f)   UF(ADVar,f,f ## _ADV) UF(DADVar,f,f ## _DADV) UF(FDReal,f,f ## _FDR) UF(AFReal,f,f ## _AFR)
 
#define UF(T, f, fn)   T fn(T &x, T &y) { return f(x,y); }
 
#define U4f(f, d)   { #f, d, f ## _ADV, f ## _DADV, f ## _FDR, f ## _AFR }
 
#define Dcl(T, T1)   T x ## T1, y ## T1, z ## T1
 
#define In(T)   p ## T[0] = &x ## T; p ## T[1] = &z ## T
 

Typedefs

typedef Sacado::Rad2d::ADvar ADVar
 
typedef Sacado::Rad2::ADvar< double > DADVar
 
typedef Sacado::Rad::ADvar< double > DReal
 
typedef Sacado::Fad::SFad< DReal, 1 > FDReal
 
typedef Sacado::Fad::SFad< double, 1 > FReal
 
typedef Sacado::Rad::ADvar< FRealAFReal
 
typedef ADVar(* ADVar_uf) (ADVar &)
 
typedef DADVar(* DADVar_uf) (DADVar &)
 
typedef FDReal(* FDReal_uf) (FDReal &)
 
typedef AFReal(* AFReal_uf) (AFReal &)
 
typedef ADVar(* ADVar_uf2) (ADVar &, ADVar &)
 
typedef DADVar(* DADVar_uf2) (DADVar &, DADVar &)
 
typedef FDReal(* FDReal_uf2) (FDReal &, FDReal &)
 
typedef AFReal(* AFReal_uf2) (AFReal &, AFReal &)
 

Functions

static int differ (double a, double b)
 
static int usage (int rc)
 
int main (int argc, char **argv)
 

Variables

static double dom_acosh [] = { 1., DBL_MAX }
 
static double dom_all [] = { -DBL_MAX, DBL_MAX }
 
static double dom_invtrig [] = { -1., 1. }
 
static double dom_log [] = { DBL_MIN, DBL_MAX }
 
static Func4 UT []
 
static Func42 UT2 []
 
static char * progname
 

Macro Definition Documentation

◆ UF [1/2]

#define UF ( T,
f,
fn )   T fn(T &x) { return f(x); }

Definition at line 49 of file hesopcheck.cpp.

◆ UF4

#define UF4 ( f)    UF(ADVar,f,f ## _ADV) UF(DADVar,f,f ## _DADV) UF(FDReal,f,f ## _FDR) UF(AFReal,f,f ## _AFR)

Definition at line 51 of file hesopcheck.cpp.

◆ UF [2/2]

#define UF ( T,
f,
fn )   T fn(T &x, T &y) { return f(x,y); }

Definition at line 49 of file hesopcheck.cpp.

◆ U4f

#define U4f ( f,
d )   { #f, d, f ## _ADV, f ## _DADV, f ## _FDR, f ## _AFR }

Definition at line 104 of file hesopcheck.cpp.

◆ Dcl

#define Dcl ( T,
T1 )   T x ## T1, y ## T1, z ## T1

◆ In

#define In ( T)    p ## T[0] = &x ## T; p ## T[1] = &z ## T

Typedef Documentation

◆ ADVar

Definition at line 42 of file hesopcheck.cpp.

◆ DADVar

typedef Sacado::Rad2::ADvar<double> DADVar

Definition at line 43 of file hesopcheck.cpp.

◆ DReal

typedef Sacado::Rad::ADvar<double> DReal

Definition at line 44 of file hesopcheck.cpp.

◆ FDReal

Definition at line 45 of file hesopcheck.cpp.

◆ FReal

typedef Sacado::Fad::SFad<double,1> FReal

Definition at line 46 of file hesopcheck.cpp.

◆ AFReal

Definition at line 47 of file hesopcheck.cpp.

◆ ADVar_uf

typedef ADVar(* ADVar_uf) (ADVar &)

Definition at line 78 of file hesopcheck.cpp.

◆ DADVar_uf

typedef DADVar(* DADVar_uf) (DADVar &)

Definition at line 79 of file hesopcheck.cpp.

◆ FDReal_uf

typedef FDReal(* FDReal_uf) (FDReal &)

Definition at line 80 of file hesopcheck.cpp.

◆ AFReal_uf

typedef AFReal(* AFReal_uf) (AFReal &)

Definition at line 81 of file hesopcheck.cpp.

◆ ADVar_uf2

typedef ADVar(* ADVar_uf2) (ADVar &, ADVar &)

Definition at line 83 of file hesopcheck.cpp.

◆ DADVar_uf2

typedef DADVar(* DADVar_uf2) (DADVar &, DADVar &)

Definition at line 84 of file hesopcheck.cpp.

◆ FDReal_uf2

typedef FDReal(* FDReal_uf2) (FDReal &, FDReal &)

Definition at line 85 of file hesopcheck.cpp.

◆ AFReal_uf2

typedef AFReal(* AFReal_uf2) (AFReal &, AFReal &)

Definition at line 86 of file hesopcheck.cpp.

Function Documentation

◆ differ()

static int differ ( double a,
double b )
static

Definition at line 147 of file hesopcheck.cpp.

◆ usage()

static int usage ( int rc)
static

Definition at line 164 of file hesopcheck.cpp.

◆ main()

int main ( int argc,
char ** argv )

Definition at line 174 of file hesopcheck.cpp.

Variable Documentation

◆ dom_acosh

double dom_acosh[] = { 1., DBL_MAX }
static

Definition at line 89 of file hesopcheck.cpp.

◆ dom_all

double dom_all[] = { -DBL_MAX, DBL_MAX }
static

Definition at line 90 of file hesopcheck.cpp.

◆ dom_invtrig

double dom_invtrig[] = { -1., 1. }
static

Definition at line 91 of file hesopcheck.cpp.

◆ dom_log

double dom_log[] = { DBL_MIN, DBL_MAX }
static

Definition at line 92 of file hesopcheck.cpp.

◆ UT

Func4 UT[]
static
Initial value:
= {
U4f(abs, dom_all),
U4f(acos, dom_invtrig),
U4f(acosh, dom_acosh),
U4f(asin, dom_invtrig),
U4f(asinh, dom_all),
U4f(atan, dom_all),
U4f(atanh, dom_invtrig),
U4f(cos, dom_all),
U4f(cosh, dom_all),
U4f(exp, dom_all),
U4f(fabs, dom_all),
U4f(log, dom_log),
U4f(log10, dom_log),
U4f(sin, dom_all),
U4f(sinh, dom_all),
U4f(sqrt, dom_log),
U4f(tan, dom_all),
U4f(tanh, dom_all)
}
static double dom_log[]
static double dom_acosh[]
static double dom_all[]
#define U4f(f, d)
static double dom_invtrig[]

Definition at line 106 of file hesopcheck.cpp.

◆ UT2

Func42 UT2[]
static
Initial value:
= {
U4f(atan2, dom_all),
U4f(pow, dom_log)
}

Definition at line 137 of file hesopcheck.cpp.

◆ progname

char* progname
static

Definition at line 161 of file hesopcheck.cpp.