CppADCodeGen
HEAD
A C++ Algorithmic Differentiation Package with Source Code Generation
loop_position.hpp
1
#ifndef CPPAD_CG_LOOP_POSITION_INCLUDED
2
#define CPPAD_CG_LOOP_POSITION_INCLUDED
3
/* --------------------------------------------------------------------------
4
* CppADCodeGen: C++ Algorithmic Differentiation with Source Code Generation:
5
* Copyright (C) 2013 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
24
class
LoopPosition
{
25
public
:
26
size_t
tape;
27
size_t
original;
28
29
inline
LoopPosition
() :
30
tape((std::numeric_limits<size_t>::max)()),
31
original((std::numeric_limits<size_t>::max)()) {
32
}
33
38
inline
LoopPosition
(
size_t
t,
size_t
o) :
39
tape(t),
40
original(o) {
41
}
42
};
43
47
class
LoopIndexedPosition
:
public
LoopPosition
{
48
public
:
49
size_t
iteration;
50
51
inline
LoopIndexedPosition
() :
52
LoopPosition
(),
53
iteration(-1) {
54
}
55
61
inline
LoopIndexedPosition
(
size_t
t,
size_t
o,
size_t
it) :
62
LoopPosition
(t, o),
63
iteration(it) {
64
}
65
};
66
67
}
// END cg namespace
68
}
// END CppAD namespace
69
70
#endif
CppAD::cg::LoopPosition::LoopPosition
LoopPosition(size_t t, size_t o)
Definition:
loop_position.hpp:38
CppAD::cg::LoopIndexedPosition
Definition:
loop_position.hpp:47
CppAD
Definition:
abstract_atomic_fun.hpp:19
CppAD::cg::LoopPosition
Definition:
loop_position.hpp:24
CppAD::cg::LoopIndexedPosition::LoopIndexedPosition
LoopIndexedPosition(size_t t, size_t o, size_t it)
Definition:
loop_position.hpp:61
include
cppad
cg
patterns
loop_position.hpp
Generated on Sat May 3 2025 16:08:05 for CppADCodeGen by
1.8.13