Template Function icrar::isApprox(const std::vector<T>&, const std::vector<T>&, T)

Function Documentation

template<typename T>
bool icrar::isApprox(const std::vector<T> &lhs, const std::vector<T> &rhs, T tolerance)

Returns true if all vector elements of lhs are within the tolerance threshold to rhs.

Template Parameters:

T – numeric type

Parameters:
  • lhs – left hand side

  • rhs – right hand side

  • tolerance – tolerance threshold