Reference documentation for deal.II version Git bef661081b 2019-09-23 12:55:27 -0400
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.
Jean-Paul Pelteret, 2017

Definition at line 149 of file ad_number_traits.h.

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