Drake
autodiff.h File Reference

Utilities for arithmetic on AutoDiffScalar. More...

#include <cmath>
#include <Eigen/Dense>
#include <unsupported/Eigen/AutoDiff>
#include "drake/math/gradient.h"
Include dependency graph for autodiff.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  AutoDiffToValueMatrix< Derived >
 
struct  AutoDiffToGradientMatrix< Derived >
 

Namespaces

 drake
 
 drake::math
 

Functions

template<typename DerType >
double round (const Eigen::AutoDiffScalar< DerType > &x)
 Overloads round to mimic std::round from <cmath>. More...
 
template<typename DerType >
double floor (const Eigen::AutoDiffScalar< DerType > &x)
 Overloads floor to mimic std::floor from <cmath>. More...
 
template<typename Derived >
AutoDiffToValueMatrix< Derived >::type autoDiffToValueMatrix (const Eigen::MatrixBase< Derived > &auto_diff_matrix)
 
template<typename Derived >
AutoDiffToGradientMatrix< Derived >::type autoDiffToGradientMatrix (const Eigen::MatrixBase< Derived > &auto_diff_matrix, int num_variables=Eigen::Dynamic)
 

Detailed Description

Utilities for arithmetic on AutoDiffScalar.

Function Documentation

double floor ( const Eigen::AutoDiffScalar< DerType > &  x)

Overloads floor to mimic std::floor from <cmath>.

Must appear in global namespace so that ADL can select between this implementation and the STL one.

Here is the caller graph for this function:

double round ( const Eigen::AutoDiffScalar< DerType > &  x)

Overloads round to mimic std::round from <cmath>.

Must appear in global namespace so that ADL can select between this implementation and the STL one.

Here is the caller graph for this function: