G+Smo  25.01.0
Geometry + Simulation Modules
 
Loading...
Searching...
No Matches
exprtk_codi_adaptor.hpp
Go to the documentation of this file.
1
15#pragma once
16
17#include <string>
19
21#include "exprtk.hpp"
22
23namespace exprtk
24{
25namespace details
26{
27
28namespace constant_codi
29{
30static const double e = 2.71828182845904523536028747135266249775724709369996;
31static const double pi = 3.14159265358979323846264338327950288419716939937510;
32static const double pi_2 = 1.57079632679489661923132169163975144209858469968755;
33static const double pi_4 = 0.78539816339744830961566084581987572104929234984378;
34static const double pi_180 = 0.01745329251994329576923690768488612713442871888542;
35static const double _1_pi = 0.31830988618379067153776752674502872406891929148091;
36static const double _2_pi = 0.63661977236758134307553505349005744813783858296183;
37static const double _180_pi = 57.29577951308232087679815481410517033240547246656443;
38static const double log2 = 0.69314718055994530941723212145817656807550013436026;
39static const double sqrt2 = 1.41421356237309504880168872420969807856967187537695;
40} // namespace constant_codi
41}
42}
43
44#define CODI_TYPE codi_real_forward_t
45#include "exprtk_codi_adaptor.h"
46#undef CODI_TYPE
47
48#define CODI_TYPE codi_real_reverse_t
49#include "exprtk_codi_adaptor.h"
50#undef CODI_TYPE
51
52#define CODI_TYPE codi_real_reverse_index_t
53#include "exprtk_codi_adaptor.h"
54#undef CODI_TYPE
55
56#define CODI_TYPE codi_real_reverse_primal_t
57#include "exprtk_codi_adaptor.h"
58#undef CODI_TYPE
59
60#define CODI_TYPE codi_real_reverse_primal_index_t
61#include "exprtk_codi_adaptor.h"
62#undef CODI_TYPE
63
64// The unchecked versions lead to code redefinition
65
66// #define CODI_TYPE codi_real_reverse_unchecked_t
67// #include "exprtk_codi_adaptor.h"
68// #undef CODI_TYPE
69
70// #define CODI_TYPE codi_real_reverse_index_unchecked_t
71// #include "exprtk_codi_adaptor.h"
72// #undef CODI_TYPE
73
74// #define CODI_TYPE codi_real_reverse_primal_unchecked_t
75// #include "exprtk_codi_adaptor.h"
76// #undef CODI_TYPE
77
78// #define CODI_TYPE codi_real_reverse_primal_index_unchecked_t
79// #include "exprtk_codi_adaptor.h"
80// #undef CODI_TYPE
Provides an exprtk adaptor forCoDiPack arithmetic types of autodiff.
Provides an exprtk adaptor for CoDiPack arithmetic types of autodiff.
Header for CoDiPack package.