CoDiPack  2.2.0
A Code Differentiation Package
SciComp TU Kaiserslautern
Loading...
Searching...
No Matches
statementEvaluatorInterface.hpp
1/*
2 * CoDiPack, a Code Differentiation Package
3 *
4 * Copyright (C) 2015-2024 Chair for Scientific Computing (SciComp), University of Kaiserslautern-Landau
5 * Homepage: http://scicomp.rptu.de
6 * Contact: Prof. Nicolas R. Gauger (codi@scicomp.uni-kl.de)
7 *
8 * Lead developers: Max Sagebaum, Johannes Blühdorn (SciComp, University of Kaiserslautern-Landau)
9 *
10 * This file is part of CoDiPack (http://scicomp.rptu.de/software/codi).
11 *
12 * CoDiPack is free software: you can redistribute it and/or
13 * modify it under the terms of the GNU General Public License
14 * as published by the Free Software Foundation, either version 3 of the
15 * License, or (at your option) any later version.
16 *
17 * CoDiPack is distributed in the hope that it will be useful,
18 * but WITHOUT ANY WARRANTY; without even the implied warranty
19 * of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
20 *
21 * See the GNU General Public License for more details.
22 * You should have received a copy of the GNU
23 * General Public License along with CoDiPack.
24 * If not, see <http://www.gnu.org/licenses/>.
25 *
26 * For other licensing options please contact us.
27 *
28 * Authors:
29 * - SciComp, University of Kaiserslautern-Landau:
30 * - Max Sagebaum
31 * - Johannes Blühdorn
32 * - Former members:
33 * - Tim Albring
34 */
35#pragma once
36
37#include "../../misc/macros.hpp"
38#include "../../misc/memberStore.hpp"
39
41namespace codi {
42
102 template<typename T_Real>
104 public:
105
106 using Real = CODI_DD(T_Real, double);
107
108 /*******************************************************************************/
110
111 using Handle = CODI_ANY;
112
115 template<typename Tape, typename... Args>
116 static Real callForward(Handle const& h, Args&&... args);
117
120 template<typename Tape, typename... Args>
121 static Real callPrimal(Handle const& h, Args&&... args);
122
125 template<typename Tape, typename... Args>
126 static void callReverse(Handle const& h, Args&&... args);
127
132 template<typename Tape, typename Generator, typename Expr>
134 };
135}
#define CODI_DD(Type, Default)
Abbreviation for CODI_DECLARE_DEFAULT.
Definition macros.hpp:94
#define CODI_ANY
Used in default declarations of expression templates.
Definition macros.hpp:98
CoDiPack - Code Differentiation Package.
Definition codi.hpp:90
Creation of handles for the evaluation of expressions in a context where the expression type is not a...
Definition statementEvaluatorInterface.hpp:103
static Real callForward(Handle const &h, Args &&... args)
int Handle
Type of the handle.
Definition statementEvaluatorInterface.hpp:111
T_Real Real
See StatementEvaluatorInterface.
Definition statementEvaluatorInterface.hpp:106
static Real callPrimal(Handle const &h, Args &&... args)
static void callReverse(Handle const &h, Args &&... args)