The return type for AutoDiff::derivatives() when the AutoDiff is mutable.
The underlying type is Eigen::Map<Eigen::VectorXd> which includes all of the usual functions for element access and arithmetic.
#include <drake/common/ad/internal/derivatives_xpr.h>
Public Member Functions | |
| DerivativesMutableXpr (const DerivativesMutableXpr &)=default | |
| This class is copyable and copy-assignable. | |
| DerivativesMutableXpr | operator= (const DerivativesMutableXpr &other) |
| template<typename Derived> | |
| DerivativesMutableXpr | operator= (const DenseBase< Derived > &other) |
| Sets the AutoDiff::derivatives() to a new value and returns a new Xpr. | |
| DerivativesMutableXpr | resize (Eigen::Index rows, Eigen::Index cols=1) |
| Like MatrixBase::resize(), discards any existing data and resizes the derivatives vector. | |
| DerivativesMutableXpr | conservativeResize (Eigen::Index rows, Eigen::Index cols=1) |
| Like MatrixBase::conservativeResize(), changes the size() of this while keeping existing data intact. | |
|
default |
This class is copyable and copy-assignable.
| DerivativesMutableXpr conservativeResize | ( | Eigen::Index | rows, |
| Eigen::Index | cols = 1 ) |
Like MatrixBase::conservativeResize(), changes the size() of this while keeping existing data intact.
New values are filled with zeros.
| std::exception | when cols != 1 |
| DerivativesMutableXpr operator= | ( | const DenseBase< Derived > & | other | ) |
Sets the AutoDiff::derivatives() to a new value and returns a new Xpr.
| DerivativesMutableXpr operator= | ( | const DerivativesMutableXpr & | other | ) |
| DerivativesMutableXpr resize | ( | Eigen::Index | rows, |
| Eigen::Index | cols = 1 ) |
Like MatrixBase::resize(), discards any existing data and resizes the derivatives vector.
| std::exception | when cols != 1 |