TMB Documentation
v1.9.11
|
Argument class to handle array access of operator inputs and outputs. More...
#include <global.hpp>
Public Member Functions | |
Index | input (Index j) const |
Get variable index of j'th input to current operator. | |
Index | output (Index j) const |
Get variable index of j'th output of current operator. | |
Public Attributes | |
const Index * | inputs |
Array for indirect access of operator inputs. | |
IndexPair | ptr |
Input/output pointers. More... | |
Argument class to handle array access of operator inputs and outputs.
global::values
) and derivatives (global::derivs
) are stored as two contiguous arrays of the same size.Args
class instance becomes invalid if global::inputs
is modified. Definition at line 256 of file global.hpp.
IndexPair TMBad::Args< dummy >::ptr |
Input/output pointers.
ptr.first
points into the input
array.ptr.second
points into the actual value/derivative array Definition at line 263 of file global.hpp.
Referenced by TMBad::global::add_to_stack(), TMBad::all_allow_remap(), TMBad::global::forward(), TMBad::global::forward_dense(), TMBad::global::forward_loop(), TMBad::global::forward_loop_subgraph(), TMBad::autopar::max_tree_depth(), TMBad::global::op2var(), TMBad::remap_identical_sub_expressions(), TMBad::reorder_depth_first(), TMBad::global::reverse_loop(), TMBad::global::reverse_loop_subgraph(), and TMBad::split_period().