maliput
math/compare.h File Reference
Include dependency graph for math/compare.h:
This graph shows which files directly or indirectly include this file:

Namespaces

 maliput
 Code in this file is inspired by: https://github.com/RobotLocomotion/drake/blob/master/common/text_logging.h.
 
 maliput::math
 Namespace to group basic mathematical and geometric support to maliput.
 

Enumerations

enum  CompareType { kAbsolute, kRelative }
 

Functions

template<std::size_t N, typename Derived >
common::ComparisonResult< math::VectorBase< N, Derived > > CompareVectors (const math::VectorBase< N, Derived > &v1, const math::VectorBase< N, Derived > &v2, double tolerance=0.0, CompareType compare_type=CompareType::kAbsolute)
 Evaluate that two vectors v1 and v2 are equal down to a certain tolerance. More...
 
template<std::size_t N>
common::ComparisonResult< math::Matrix< N > > CompareMatrices (const math::Matrix< N > &m1, const math::Matrix< N > &m2, double tolerance=0.0, CompareType compare_type=CompareType::kAbsolute)
 Evaluate that two matrices m1 and m2 are equal down to a certain tolerance. More...