CoDiPack  2.2.0
A Code Differentiation Package
SciComp TU Kaiserslautern
Loading...
Searching...
No Matches
codi::UnaryOperation< T_Real > Struct Template Reference

Interface for implementing the logic for a UnaryExpression. More...

#include <unaryExpression.hpp>

Inheritance diagram for codi::UnaryOperation< T_Real >:

Public Types

using Real = T_Real
 See UnaryOperation.
 

Static Public Member Functions

template<typename Arg >
static Real gradient (Arg const &arg, Real const &result)
 
template<typename Arg >
static Real primal (Arg const &arg)
 

Detailed Description

template<typename T_Real>
struct codi::UnaryOperation< T_Real >

Interface for implementing the logic for a UnaryExpression.

See Expression design documentation for details about the expression system in CoDiPack.

Template Parameters
T_RealOriginal primal value of the statement/expression.

Member Function Documentation

◆ gradient()

template<typename T_Real >
template<typename Arg >
static Real codi::UnaryOperation< T_Real >::gradient ( Arg const & arg,
Real const & result )
inlinestatic

Compute the gradient with respect to the argument

The type of the argument is the type of the result of a getValue call on the expression.

◆ primal()

template<typename T_Real >
template<typename Arg >
static Real codi::UnaryOperation< T_Real >::primal ( Arg const & arg)
inlinestatic

Compute the primal value from the argument.

The type of the argument is the type of the result of a getValue call on the expression.


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