TMB Documentation  v1.9.10
Public Member Functions | List of all members
TMBad::ForwardArgs< Type > Struct Template Reference

Access input/output values during a forward pass. Write access granted for the output value only. More...

#include <global.hpp>

Public Member Functions

Type x (Index j) const
 j'th input variable of this operator
 
Type * x_ptr (Index j)
 pointer version - use with caution.
 
segment_ref< ForwardArgs, x_read > x_segment (Index from, Index size)
 segment version
 
Type & y (Index j)
 j'th output variable of this operator
 
Type * y_ptr (Index j)
 pointer version - use with caution.
 
segment_ref< ForwardArgs, y_write > y_segment (Index from, Index size)
 segment version
 
- Public Member Functions inherited from TMBad::Args<>
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.
 

Additional Inherited Members

- Public Attributes inherited from TMBad::Args<>
const Index * inputs
 Array for indirect access of operator inputs.
 
IndexPair ptr
 Input/output pointers. More...
 

Detailed Description

template<class Type>
struct TMBad::ForwardArgs< Type >

Access input/output values during a forward pass. Write access granted for the output value only.

Warning
A ForwardArgs class instance becomes invalid if global::inputs or global::values are modified.

Definition at line 279 of file global.hpp.


The documentation for this struct was generated from the following file:
License: GPL v2