Utilities for arithmetic on AutoDiffScalar.
|
template<typename Derived > |
MatrixLikewise< typename Derived::Scalar::Scalar, Derived > | ExtractValue (const Eigen::MatrixBase< Derived > &auto_diff_matrix) |
| Extracts the value() portion from a matrix of AutoDiffScalar entries. More...
|
|
template<typename Derived > |
decltype(auto) | DiscardGradient (const Eigen::MatrixBase< Derived > &matrix) |
| B = DiscardGradient(A) enables casting from a matrix of AutoDiffScalars to AutoDiffScalar::Scalar type, explicitly throwing away any gradient information. More...
|
|
template<typename Derived , typename DerivedAutoDiff > |
void | InitializeAutoDiff (const Eigen::MatrixBase< Derived > &value, std::optional< int > num_derivatives, std::optional< int > deriv_num_start, Eigen::MatrixBase< DerivedAutoDiff > *auto_diff_matrix) |
| Initializes a single AutoDiff matrix given the corresponding value matrix. More...
|
|
template<typename Derived , typename DerivedAutoDiff > |
void | InitializeAutoDiff (const Eigen::MatrixBase< Derived > &value, Eigen::MatrixBase< DerivedAutoDiff > *auto_diff_matrix) |
| Alternate signature provides default values for the number of derivatives (dynamic, determined at run time) and the starting index (0). More...
|
|
template<int nq = Eigen::Dynamic, typename Derived > |
AutoDiffMatrixType< Derived, nq > | InitializeAutoDiff (const Eigen::MatrixBase< Derived > &value, std::optional< int > num_derivatives={}, std::optional< int > deriv_num_start={}) |
| Initializes a single AutoDiff matrix given the corresponding value matrix. More...
|
|
template<typename... Deriveds> |
auto | InitializeAutoDiffTuple (const Eigen::MatrixBase< Deriveds > &... args) |
|