Function indexes_in_vec
Defined in File globals.h
Function Documentation
-
vector<size_t> indexes_in_vec(const double &value, const vector<double> &vec, const float &precision)
Return the vector of indexes of values in
vecthat matchvalueto the requiredprecision.- Parameters:
value – input to be compared to the content of
vectorvec – the input vector of values to be compared to
valueprecision – the precision with which
valuemust compare to the entries invector
- Returns:
the vector of indexes in
vectorof the matching values.