The return type for AutoDiff::derivatives() when the AutoDiff is const.
The underlying type is similar to an Eigen::Map<const Eigen::VectorXd> which includes all of the usual functions for element access and arithmetic.
(Advanced) To be more specific, because we need to scale up the Map by a constant, the underlying type actually goes something like this: Eigen::CwiseBinaryOp< Eigen::scalar_product_op, const Eigen::CwiseNullaryOp<Eigen::scalar_constant_op>(coeff), const Eigen::Map(data, size)>>
#include <drake/common/ad/internal/derivatives_xpr.h>
Public Member Functions | |
| DerivativesConstXpr (const DerivativesConstXpr &)=default | |
| This class is copyable, but not copy-assignable. | |
| void | operator= (const DerivativesConstXpr &)=delete |
| void | resize (Eigen::Index, Eigen::Index={}) const =delete |
| This class does not support resize(). | |
| void | conservativeResize (Eigen::Index, Eigen::Index={}) const =delete |
| This class does not support conservativeResize(). | |
|
default |
This class is copyable, but not copy-assignable.
|
delete |
This class does not support conservativeResize().
|
delete |
|
delete |
This class does not support resize().