Belle II Software development
|
Simple structure implementing dual numbers which are used for exact evaluation of the derivatives, see https://en.wikipedia.org/wiki/Automatic_differentiation#Automatic_differentiation_using_dual_numbers. More...
#include <beamHelpers.h>
Public Member Functions | |
DualNumber (double X, double dX) | |
constructor allowing to set the values | |
DualNumber () | |
constructor setting values to zero | |
Public Attributes | |
double | x |
nominal value of dual number | |
double | dx |
differential value of dual number, should be 1 if derivative is calculated | |
Simple structure implementing dual numbers which are used for exact evaluation of the derivatives, see https://en.wikipedia.org/wiki/Automatic_differentiation#Automatic_differentiation_using_dual_numbers.
Definition at line 38 of file beamHelpers.h.
|
inline |
constructor allowing to set the values
Definition at line 43 of file beamHelpers.h.
|
inline |
double dx |
differential value of dual number, should be 1 if derivative is calculated
Definition at line 40 of file beamHelpers.h.
double x |
nominal value of dual number
Definition at line 39 of file beamHelpers.h.