Reference documentation for deal.II version Git e051263625 2020-04-08 22:32:15 +0200
\(\newcommand{\vcentcolon}{\mathrel{\mathop{:}}}\) \(\newcommand{\dealcoloneq}{\vcentcolon\mathrel{\mkern-1.2mu}=}\) \(\newcommand{\jump}[1]{\left[\!\left[ #1 \right]\!\right]}\) \(\newcommand{\average}[1]{\left\{\!\left\{ #1 \right\}\!\right\}}\)
Differentiation::AD::internal::Marking< ADNumberType, T > Struct Template Reference

#include <deal.II/differentiation/ad/ad_number_traits.h>

Detailed Description

template<typename ADNumberType, typename T = void>
struct Differentiation::AD::internal::Marking< ADNumberType, T >

A struct to assist with the marking of AD numbers that represent independent and dependent variables.

The specializations of this class have to implement the following member functions:

// Initialize the state of an independent variable.
static void
independent_variable(const ScalarType &in,
const unsigned int index,
const unsigned int n_independent_variables,
ADNumberType &out)
// Initialize the state of a dependent variable.
static void
dependent_variable(ADNumberType &out,
const ADNumberType &func);

where ADNumberType is the auto-differentiable number type and ScalarType is its floating point counterpart.

Template Parameters
ADNumberTypeA type corresponding to a supported auto-differentiable number.
TAn arbitrary type resulting from the application of the SFINAE idiom to selectively specialize this class.
Author
Jean-Paul Pelteret, 2017

Definition at line 151 of file ad_number_traits.h.


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