Reference documentation for deal.II version 9.6.0
\(\newcommand{\dealvcentcolon}{\mathrel{\mathop{:}}}\) \(\newcommand{\dealcoloneq}{\dealvcentcolon\mathrel{\mkern-1.2mu}=}\) \(\newcommand{\jump}[1]{\left[\!\left[ #1 \right]\!\right]}\) \(\newcommand{\average}[1]{\left\{\!\left\{ #1 \right\}\!\right\}}\)
Loading...
Searching...
No Matches
Differentiation::AD::internal::Marking< ADNumberType, T > Struct Template Reference

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.

Definition at line 142 of file ad_number_traits.h.


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