Class Scine::Utils::AutomaticDifferentiation::FirstND¶
-
class
FirstND
: public Scine::Utils::AutomaticDifferentiation::FirstBase<Eigen::MatrixXd, FirstND>¶ Class representing values in N dimensions and allowing for the automatic calculation of first derivatives in those N dimensions.
Public Functions
-
FirstND
()¶ Constructor that takes no arguments.
-
FirstND
(double v, Eigen::MatrixXd d)¶ Constructor that takes the value of the function as a double and the derivatives as an Eigen::MatrixXd.
-
int
dimensions
() const¶ Getter for the number of dimensions of the function.
- Return
int Number of dimensions.
-
double
derivative
(int index) const¶ Getter for the derivative.
- Return
double
- Parameters
int
: Index to the derivative that should be returned in the N dimensional derivatives object.
-