Drake
Drake C++ Documentation
Loading...
Searching...
No Matches
gray_code.h File Reference
#include <Eigen/Core>
#include "drake/common/drake_assert.h"
Include dependency graph for gray_code.h:

Classes

struct  GrayCodesMatrix< NumDigits >
 GrayCodesMatrix::type returns an Eigen matrix of integers. More...

Namespaces

namespace  drake
namespace  drake::math

Functions

template<int NumDigits = Eigen::Dynamic>
GrayCodesMatrix< NumDigits >::type CalculateReflectedGrayCodes (int num_digits=NumDigits)
 Returns a matrix whose i'th row is the Gray code for integer i.
int GrayCodeToInteger (const Eigen::Ref< const Eigen::VectorXi > &gray_code)
 Converts the Gray code to an integer.