Serac
0.1
Serac is an implicit thermal strucural mechanics simulation code.
|
Dual number struct (value plus gradient) More...
#include <dual.hpp>
Public Member Functions | |
constexpr SERAC_HOST_DEVICE auto & | operator= (double b) |
Copy assignment operator. More... | |
Public Attributes | |
double | 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) |
|
inlineconstexpr |