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

UnaryOperation implementation for cos. More...

#include <unaryOperators.hpp>

Inheritance diagram for codi::OperationCos< T_Real >:

Public Types

using Real = T_Real
 See BinaryOperation.
 
- Public Types inherited from codi::UnaryOperation< T_Real >
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)
 
- Static Public Member Functions inherited from codi::UnaryOperation< T_Real >
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::OperationCos< T_Real >

UnaryOperation implementation for cos.

Member Function Documentation

◆ gradient()

template<typename T_Real >
template<typename Arg >
static Real codi::OperationCos< 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::OperationCos< 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: