Drake
Drake C++ Documentation
normalize_vector.h File Reference
#include <Eigen/Dense>
#include "drake/math/gradient.h"
#include "drake/math/gradient_util.h"
Include dependency graph for normalize_vector.h:
This graph shows which files directly or indirectly include this file:

Namespaces

 drake
 
 drake::math
 

Functions

template<typename Derived >
void NormalizeVector (const Eigen::MatrixBase< Derived > &x, typename Derived::PlainObject &x_norm, typename drake::math::Gradient< Derived, Derived::RowsAtCompileTime, 1 >::type *dx_norm=nullptr, typename drake::math::Gradient< Derived, Derived::RowsAtCompileTime, 2 >::type *ddx_norm=nullptr)
 Computes the normalized vector, optionally with its gradient and second derivative. More...