Function navtk::utils::diff(const Matrix&, const Matrix&, double, double)

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 before and after matrices. 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.

  • rtolxt::isclose’s relative tolerance parameter (default 1e-05).

  • atolxt::isclose’s absolute tolerance parameter (default 1e-08).

Returns

Human-readable description of the difference between two matrices.