Template Function ska::isApprox(const std::vector<T>&, const std::vector<T>&, T)
Defined in File vector_extensions.h
Function Documentation
-
template<typename T>
bool ska::isApprox(const std::vector<T> &lhs, const std::vector<T> &rhs, T tolerance) Returns true if all vector elements of
lhsare within the tolerance threshold torhs.- Template Parameters:
T – numeric type
- Parameters:
lhs – left hand side
rhs – right hand side
tolerance – tolerance threshold