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

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...