Template Function icrar::isApprox(const std::vector<T>&, const std::vector<T>&, T)
Defined in File vector_extensions.h
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 torhs
.- Template Parameters:
T – numeric type
- Parameters:
lhs – left hand side
rhs – right hand side
tolerance – tolerance threshold