Drake
|
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... | |
enum MatrixCompareType |
bool drake::util::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.
m1 | The first matrix to compare. |
m2 | The second matrix to compare. |
tolerance | The tolerance for determining equivalence. |
compare_type | Whether the tolereance is absolute or relative. |
explanation | A pointer to a string variable for saving an explanation of why m1 and m2 are unequal. This parameter is optional and defaults to nullptr. |