CppADCodeGen 2.4.3
A C++ Algorithmic Differentiation Package with Source Code Generation
Loading...
Searching...
No Matches
random_index_pattern.hpp
1#ifndef CPPAD_CG_RANDOM_INDEX_PATTERN_INCLUDED
2#define CPPAD_CG_RANDOM_INDEX_PATTERN_INCLUDED
3/* --------------------------------------------------------------------------
4 * CppADCodeGen: C++ Algorithmic Differentiation with Source Code Generation:
5 * Copyright (C) 2013 Ciengis
6 * Copyright (C) 2018 Joao Leal
7 *
8 * CppADCodeGen is distributed under multiple licenses:
9 *
10 * - Eclipse Public License Version 1.0 (EPL1), and
11 * - GNU General Public License Version 3 (GPL3).
12 *
13 * EPL1 terms and conditions can be found in the file "epl-v10.txt", while
14 * terms and conditions for the GPL3 can be found in the file "gpl3.txt".
15 * ----------------------------------------------------------------------------
16 * Author: Joao Leal
17 */
18
19namespace CppAD {
20namespace cg {
21
26protected:
27 std::string name_;
28public:
29
30 inline void getSubIndexes(std::set<IndexPattern*>& indexes) const override {
31 // nothing to add
32 }
33
34 inline const std::string& getName() const {
35 return name_;
36 }
37
38 inline void setName(const std::string& name) {
39 name_ = name;
40 }
41
42 inline virtual ~RandomIndexPattern() = default;
43};
44
45} // END cg namespace
46} // END CppAD namespace
47
48#endif