Class Scine::Utils::MatrixWithDerivatives¶
-
class
MatrixWithDerivatives
¶ Container for a matrix and the derivatives of its elements. This class contains 3 matrices: val: contains the 0th order derivative of the elements. der: contains the 1th order derivative of the elements. It is thus a Eigen::Matrix of AutomaticDifferentiation::First3D elements. hes: contains the 2th order derivative of the elements. It is thus a Eigen::Matrix of AutomaticDifferentiation::Second3D elements.
Public Functions
-
Eigen::MatrixXd
getMatrixXd
() const¶ Get a copy of the underlying matrix, without derivatives.
-
void
reset
(int dimension)¶ Alias for setDimension for the case where rows = cols
-
void
setDimension
(int rows, int cols)¶ Initializes the members with dimensions given as parameters.
-
void
setBaseMatrix
(const Eigen::MatrixXd &m)¶ Sets the base matrix to m. Implicitly calls setDimension with correct dimensions.
-
Eigen::MatrixXd