Function navtk::is_symmetric

Function Documentation

bool navtk::is_symmetric(const Matrix &mat, double rtol = 1e-5, double atol = 1e-8)
Parameters
  • mat – The matrix whose symmetry is evaluated.

  • rtol – Relative tolerance allowed between 2 elements; unitless.

  • atol – Absolute tolerance allowed between 2 elements; units determined by elements being compared.

Returns

true if mat is symmetric within a tolerance and false otherwise. Does not check if square.