Drake
Drake C++ Documentation
Loading...
Searching...
No Matches
jacobian.h File Reference
#include <algorithm>
#include <cmath>
#include <Eigen/Dense>
#include <unsupported/Eigen/AutoDiff>
Include dependency graph for jacobian.h:

Namespaces

namespace  drake
namespace  drake::math

Functions

template<int MaxChunkSize = 10, class F, class Arg>
decltype(auto) jacobian (F &&f, Arg &&x)
 Computes a matrix of AutoDiffScalars from which both the value and the Jacobian of a function.
template<int MaxChunkSizeOuter = 10, int MaxChunkSizeInner = 10, class F, class Arg>
decltype(auto) hessian (F &&f, Arg &&x)
 Computes a matrix of AutoDiffScalars from which the value, Jacobian, and Hessian of a function.