41#include "../../traits/adjointVectorTraits.hpp"
59 template<
typename T_Identifier,
typename T_Gradient>
67 mutable std::map<Identifier, Gradient>
adjoints;
80#ifndef DOXYGEN_DISABLE
82 namespace AdjointVectorTraits {
83 template<
typename T_Identifier,
typename T_Gradient>
84 struct GradientImplementation<MappedAdjoints<T_Identifier, T_Gradient>> {
86 using Gradient = T_Gradient;
#define CODI_DD(Type, Default)
Abbreviation for CODI_DECLARE_DEFAULT.
Definition macros.hpp:94
CoDiPack - Code Differentiation Package.
Definition codi.hpp:91
Implementation of adjoints via a map.
Definition customAdjoints.hpp:60
Gradient const & operator[](Identifier const &i) const
Access operator in constant call contexts.
Definition customAdjoints.hpp:70
std::map< Identifier, Gradient > adjoints
Definition customAdjoints.hpp:67
T_Gradient Gradient
See MappedAdjoints.
Definition customAdjoints.hpp:63
Gradient & operator[](Identifier const &i)
Access operator in non-constant call contexts.
Definition customAdjoints.hpp:75
T_Identifier Identifier
See MappedAdjoints.
Definition customAdjoints.hpp:62