Drake
eigen_matrix_compare.h File Reference
#include <algorithm>
#include <cmath>
#include <limits>
#include <Eigen/Dense>
#include <gtest/gtest.h>
#include "drake/common/text_logging.h"
Include dependency graph for eigen_matrix_compare.h:

Go to the source code of this file.

Namespaces

 drake
 

Enumerations

enum  MatrixCompareType { absolute, relative }
 

Functions

template<typename DerivedA , typename DerivedB >
::testing::AssertionResult CompareMatrices (const Eigen::MatrixBase< DerivedA > &m1, const Eigen::MatrixBase< DerivedB > &m2, double tolerance=0.0, MatrixCompareType compare_type=MatrixCompareType::absolute)
 Compares two matrices to determine whether they are equal to within a certain threshold. More...