CppAD: A C++ Algorithmic Differentiation Package  20171217
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
csum_variable.hpp
Go to the documentation of this file.
1 // $Id$
2 # ifndef CPPAD_LOCAL_OPTIMIZE_CSUM_VARIABLE_HPP
3 # define CPPAD_LOCAL_OPTIMIZE_CSUM_VARIABLE_HPP
4 /* --------------------------------------------------------------------------
5 CppAD: C++ Algorithmic Differentiation: Copyright (C) 2003-16 Bradley M. Bell
6 
7 CppAD is distributed under multiple licenses. This distribution is under
8 the terms of the
9  Eclipse Public License Version 1.0.
10 
11 A copy of this license is included in the COPYING file of this distribution.
12 Please visit http://www.coin-or.org/CppAD/ for information on other licenses.
13 -------------------------------------------------------------------------- */
14 # include <cppad/local/op_code.hpp>
15 # include <cppad/local/declare_ad.hpp> // defines addr_t
16 
17 /*!
18 \file csum_variable.hpp
19 Information about one old variable that is part of a new CSumOp operation.
20 */
21 
22 // BEGIN_CPPAD_LOCAL_OPTIMIZE_NAMESPACE
23 namespace CppAD { namespace local { namespace optimize {
24 /*!
25 Information about one old variable that is part of a new CSumOp operation.
26 */
28  /// Pointer to first argument (child) for this old operator.
29  /// Set by the reverse sweep at beginning of optimization.
30  const addr_t* arg;
31 
32  /// Was this old variable added to the summation
33  /// (if not it was subtracted)
34  bool add;
35 
36  /// Operator for which this old variable is the result, NumRes(op) > 0.
38 };
39 
40 } } } // END_CPPAD_LOCAL_OPTIMIZE_NAMESPACE
41 
42 # endif
Information about one old variable that is part of a new CSumOp operation.
CPPAD_TAPE_ADDR_TYPE addr_t
Definition: declare_ad.hpp:44
Defines the OpCode enum type and functions related to it.
OpCode op
Operator for which this old variable is the result, NumRes(op) &gt; 0.
CppAD forward declarations; i.e., before definition.
OpCode
Type used to distinguish different AD&lt; Base &gt; atomic operations.
Definition: op_code.hpp:49
const addr_t * arg
Pointer to first argument (child) for this old operator. Set by the reverse sweep at beginning of opt...
bool add
Was this old variable added to the summation (if not it was subtracted)