Function vectors_equal (o2scl)¶
-
template<class vec_t, class vec2_t>
bool o2scl::vectors_equal(size_t n, const vec_t &v1, const vec2_t &v2)¶ Return true if the first
n
elements of two vectors are equal.This function uses the
!=
operator. If you want to compare within a finite tolerance, use vectors_equal_tol().
-
template<class vec_t, class vec2_t>
bool o2scl::vectors_equal(const vec_t &v1, const vec2_t &v2)¶ Return true if two vectors are equal (tests size and elements)
This function uses the
!=
operator. If you want to compare within a finite tolerance, use vectors_equal_tol().