![]() |
MFEM v4.9.0
Finite element discretization library
|
Dual number struct (value plus gradient) More...
#include <dual.hpp>
Public Member Functions | |
| MFEM_HOST_DEVICE auto | operator= (real_t a) -> dual< value_type, gradient_type > & |
| assignment of a real_t to a value of a dual. Promotes a real_t to a dual with a zero gradient value. | |
Public Attributes | |
| value_type | value |
| the actual numerical value | |
| gradient_type | gradient |
| the partial derivatives of value w.r.t. some other quantity | |
Dual number struct (value plus gradient)
| gradient_type | The type of the gradient (should support addition, scalar multiplication/division, and unary negation operators) |
|
inline |
| gradient_type mfem::future::dual< value_type, gradient_type >::gradient |
| value_type mfem::future::dual< value_type, gradient_type >::value |