Drake
Drake C++ Documentation
differentiable_norm.h File Reference
#include <limits>
#include <Eigen/Dense>
#include "drake/math/autodiff.h"
#include "drake/math/autodiff_gradient.h"
Include dependency graph for differentiable_norm.h:

Namespaces

 drake
 
 drake::math
 

Functions

template<typename Derived >
Derived::Scalar DifferentiableNorm (const Eigen::MatrixBase< Derived > &x)
 The 2-norm function |x| is not differentiable at x=0 (its gradient is x/|x|, which has a division-by-zero problem). More...