Drake
eigen_matrix_compare.h File Reference
#include <Eigen/Dense>
#include <cmath>
Include dependency graph for eigen_matrix_compare.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

 drake
 
 drake::util
 

Enumerations

enum  MatrixCompareType { absolute, relative }
 

Functions

template<typename DerivedA , typename DerivedB >
bool CompareMatrices (const Eigen::MatrixBase< DerivedA > &m1, const Eigen::MatrixBase< DerivedB > &m2, double tolerance, MatrixCompareType compare_type, std::string *explanation=nullptr)
 Compares two matrices to determine whether they are equal to within a certain threshold. More...