CoDiPack  2.2.0
A Code Differentiation Package
SciComp TU Kaiserslautern
Loading...
Searching...
No Matches
codi::ComputationTraits::AdjointConversionImpl< T_Outer, T_Inner, typename > Struct Template Reference

Perform the conversion of Outer(Inner) in the adjoint context. Default implementation for Outer == Inner. More...

#include <computationTraits.hpp>

Public Types

using Inner = T_Inner
 See ReduceImpl.
 
using Outer = T_Outer
 See ReduceImpl.
 
using Return = int
 Deduced return type.
 

Static Public Member Functions

static Return adjointConversion (Inner const &jacobian)
 Perform the adjoint of Outer(Inner).
 

Detailed Description

template<typename T_Outer, typename T_Inner, typename = void>
struct codi::ComputationTraits::AdjointConversionImpl< T_Outer, T_Inner, typename >

Perform the conversion of Outer(Inner) in the adjoint context. Default implementation for Outer == Inner.

E.g. for double(std::complex<double>) the conversion returns the real part of the complex number. This is the adjoint of std::complex<double>(double).

Simple specialization can be create with the macro CODI_CREATE_ADJOINT_CONVERSION.

Template Parameters
T_OuterType into which was converted.
T_InnerType from which was converted.

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