Drake
Drake C++ Documentation
Loading...
Searching...
No Matches
DerivativesConstXpr Class Referencefinal

Detailed Description

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().

Constructor & Destructor Documentation

◆ DerivativesConstXpr()

DerivativesConstXpr ( const DerivativesConstXpr & )
default

This class is copyable, but not copy-assignable.

Member Function Documentation

◆ conservativeResize()

void conservativeResize ( Eigen::Index ,
Eigen::Index = {} ) const
delete

This class does not support conservativeResize().

◆ operator=()

void operator= ( const DerivativesConstXpr & )
delete

◆ resize()

void resize ( Eigen::Index ,
Eigen::Index = {} ) const
delete

This class does not support resize().


The documentation for this class was generated from the following file: