You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+10-4Lines changed: 10 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -21,8 +21,8 @@ There is a newsletter available at [codi-info@uni-kl.de](https://lists.uni-kl.de
21
21
22
22
CoDiPack is a header only library.
23
23
The only file the user needs to include is `codi.hpp`.
24
-
The only other requirement is a C++11 compliant compiler
25
-
where one usually needs to specify '-std=c++11' in compiler arguments.
24
+
The only other requirement is a C++17 compliant compiler
25
+
where one usually needs to specify '-std=c++17' in compiler arguments. For a C++11 compilant version of CoDiPack use th 2.* release.
26
26
CoDiPack is tested with gcc, clang, and the Intel compiler.
27
27
28
28
The file `codi.hpp` defines several datatypes. The most important ones are:
@@ -83,6 +83,12 @@ Therefore we recomend to force inlining of CoDiPack with the option
83
83
-DCODI_UseForcedInlines
84
84
~~~~
85
85
86
+
### Complex numbers
87
+
88
+
If your compiler has problems with the specialization of `std::complex` for CoDiPack types, try `-DCODI_SpecializeStdComplex=0` to disable this behaviour.
89
+
Without the specialization, complex types can be defined by using `codi::ActiveComplex<CoDiType>`, e.g. `codi::ActiveComplex<codi::RealReverse>`.
90
+
91
+
86
92
## Hello World Example
87
93
88
94
A very small and simple example for the usage of the RealForward type is the following code:
@@ -106,11 +112,11 @@ A very small and simple example for the usage of the RealForward type is the fol
106
112
107
113
It is compiled with
108
114
~~~~{.txt}
109
-
g++ -I<path to codi>/include -std=c++11 -g -o forward forward.cpp
115
+
g++ -I<path to codi>/include -std=c++17 -g -o forward forward.cpp
110
116
~~~~
111
117
for the gcc compiler or with
112
118
~~~~{.txt}
113
-
icpc -I<path to codi>/include -std=c++11 -g -o forward forward.cpp
119
+
icpc -I<path to codi>/include -std=c++17 -g -o forward forward.cpp
0 commit comments