Reference documentation for deal.II version Git 7e76c9f1da 2019-09-19 09:07:25 +0200
Differentiation::AD::internal::ExtractData< 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::ExtractData< ADNumberType, T >

A struct to help extract certain information associated with auto-differentiable numbers.

The specializations of this class have to implement the following member data and type definitions:

// Extract the real scalar value.
static scalar_type
value (const ADNumberType &x);
// Extract the number of directional derivatives.
static unsigned int
n_directional_derivatives (const ADNumberType &x);
// Extract the directional derivative in the specified @p direction.
static derivative_type
directional_derivative (const ADNumberType &x,
const unsigned int direction);

where ADNumberType is the auto-differentiable number type.

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 184 of file ad_number_traits.h.

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