CppADCodeGen
HEAD
A C++ Algorithmic Differentiation Package with Source Code Generation
external_function_wrapper.hpp
1
#ifndef CPPAD_CG_EXTERNAL_FUNCTION_WRAPPER_INCLUDED
2
#define CPPAD_CG_EXTERNAL_FUNCTION_WRAPPER_INCLUDED
3
/* --------------------------------------------------------------------------
4
* CppADCodeGen: C++ Algorithmic Differentiation with Source Code Generation:
5
* Copyright (C) 2014 Ciengis
6
*
7
* CppADCodeGen is distributed under multiple licenses:
8
*
9
* - Eclipse Public License Version 1.0 (EPL1), and
10
* - GNU General Public License Version 3 (GPL3).
11
*
12
* EPL1 terms and conditions can be found in the file "epl-v10.txt", while
13
* terms and conditions for the GPL3 can be found in the file "gpl3.txt".
14
* ----------------------------------------------------------------------------
15
* Author: Joao Leal
16
*/
17
18
namespace
CppAD
{
19
namespace
cg {
20
21
template
<
class
Base>
22
class
ExternalFunctionWrapper
{
23
public
:
35
virtual
bool
forward
(
FunctorGenericModel<Base>
& libModel,
36
int
q,
37
int
p,
38
const
Array
tx[],
39
Array
& ty) = 0;
40
52
virtual
bool
reverse
(
FunctorGenericModel<Base>
& libModel,
53
int
p,
54
const
Array
tx[],
55
Array
& px,
56
const
Array
py[]) = 0;
57
58
inline
virtual
~
ExternalFunctionWrapper
() {
59
}
60
};
61
62
}
// END cg namespace
63
}
// END CppAD namespace
64
65
#endif
CppAD::cg::ExternalFunctionWrapper::reverse
virtual bool reverse(FunctorGenericModel< Base > &libModel, int p, const Array tx[], Array &px, const Array py[])=0
CppAD::cg::ExternalFunctionWrapper::forward
virtual bool forward(FunctorGenericModel< Base > &libModel, int q, int p, const Array tx[], Array &ty)=0
CppAD
Definition:
abstract_atomic_fun.hpp:19
Array
Definition:
lang_c_atomic_fun.hpp:25
CppAD::cg::FunctorGenericModel
Definition:
declare_cg.hpp:147
CppAD::cg::ExternalFunctionWrapper
Definition:
external_function_wrapper.hpp:22
include
cppad
cg
model
external_function_wrapper.hpp
Generated on Sat May 3 2025 16:08:05 for CppADCodeGen by
1.8.13