Drake
Drake C++ Documentation
Loading...
Searching...
No Matches
drake_operations.h File Reference
This graph shows which files directly or indirectly include this file:

Namespaces

namespace  drake

Functions

double ExtractDoubleOrThrow (const ad::AutoDiff &scalar)
 Returns the autodiff scalar's value() as a double.
template<int RowsAtCompileTime, int ColsAtCompileTime, int Options, int MaxRowsAtCompileTime, int MaxColsAtCompileTime>
auto ExtractDoubleOrThrow (const Eigen::MatrixBase< Eigen::Matrix< ad::AutoDiff, RowsAtCompileTime, ColsAtCompileTime, Options, MaxRowsAtCompileTime, MaxColsAtCompileTime > > &matrix)
 Returns matrix as an Eigen::Matrix<double, ...> with the same size allocation as matrix.
ad::AutoDiff if_then_else (bool f_cond, const ad::AutoDiff &x, const ad::AutoDiff &y)
 Provides if-then-else expression for AutoDiff.
ad::AutoDiff cond (const ad::AutoDiff &e)
 Provides cond's base case for AutoDiff.
template<typename... Rest>
ad::AutoDiff cond (bool f_cond, const ad::AutoDiff &e_then, Rest... rest)
 Provides cond base for AutoDiff.