Function navtk::utils::diff(const Matrix&, const Matrix&, double, double)
Defined in File human_readable.hpp
Function Documentation
-
std::string navtk::utils::diff(const Matrix &before, const Matrix &after, double rtol = 1e-05, double atol = 1e-08)
Returns a human-readable description of the difference between two matrices.
This is a convenience overload which supplies hardcoded names “before” and “after” to the
beforeandaftermatrices.diff(x, y, r, a) == diff("before", "after", x, y, r, a).See the other overload for a more detailed description.
- Parameters
before – The ‘before’ matrix to be compared.
after – The ‘after’ matrix to be compared.
rtol –
xt::isclose’s relative tolerance parameter (default 1e-05).atol –
xt::isclose’s absolute tolerance parameter (default 1e-08).
- Returns
Human-readable description of the difference between two matrices.