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

UnaryOperation implementation for cosh. More...

#include <unaryOperators.hpp>

Inheritance diagram for codi::OperationCosh< 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::OperationCosh< T_Real >

UnaryOperation implementation for cosh.

Member Function Documentation

◆ gradient()

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