Class Scine::Utils::AutomaticDifferentiation::Second1D¶
-
class
Second1D
¶ Class representing values in one dimensions and allowing for the automatic calculation of first and second derivatives.
Public Functions
-
Second1D
()¶ Default constructor.
-
Second1D
(double v, double d, double h)¶ Constructor that takes a value, first derivative and second derivative of a function as an argument.
- Parameters
v
: Value of the function.d
: First derivative of the function.h
: Second derivative of the function.
-
double
value
() const¶ Getter for the value.
- Return
double
-
double
first
() const¶ Getter for the first derivative.
- Return
double
-
double
second
() const¶ Getter for the second derivative.
- Return
double
-
void
setValue
(double v)¶ Setter for the value.
-
void
setFirst
(double d)¶ Setter for the first derivative.
-
void
setSecond
(double h)¶ Setter for the second derivative.
-
void
setZero
()¶ Zero initializer.
-