CoDiPack  2.2.0
A Code Differentiation Package
SciComp TU Kaiserslautern
Loading...
Searching...
No Matches
codi::StatementPushHelperBase< T_Type, T_Impl > Struct Template Reference

Base class for manual statement pushes on the tape. More...

#include <statementPushHelper.hpp>

Inheritance diagram for codi::StatementPushHelperBase< T_Type, T_Impl >:

Public Types

using Impl = T_Impl
 See StatementPushHelperBase.
 
using Real = typename Type::Real
 See LhsExpressionInterface.
 
using Type = T_Type
 See StatementPushHelperBase.
 

Public Member Functions

Interface definition
void endPushStatement (Type &lhs, Real const &primal)
 Finish the push of a statement. Performs lhs = primal and cleans up all data.
 
void pushArgument (Type const &arg, Real const &jacobian)
 Add the Jacobian of an argument of the statement.
 
void startPushStatement ()
 Initialize all data for the push of a statement.
 
Start of general implementation
template<typename ArgIter , typename JacobiIter >
void pushStatement (Type &lhs, Real const &primal, ArgIter const startArg, ArgIter const endArg, JacobiIter const startJac)
 Push a complete statement where the Jacobians and arguments are provided as iterator objects.
 
template<typename ArgVector , typename JacobiVector >
void pushStatement (Type &lhs, Real const &primal, ArgVector const &arguments, JacobiVector const &jacobians, size_t const size)
 Push a complete statement where the Jacobians and arguments are provided as arrays.
 

Detailed Description

template<typename T_Type, typename T_Impl>
struct codi::StatementPushHelperBase< T_Type, T_Impl >

Base class for manual statement pushes on the tape.

See StatementPushHelper for details.

Template Parameters
T_TypeThe CoDiPack type on whose tape the statements are pushed.
T_ImplThe actual implementation.

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