Defined in header <scicpp/core.hpp>
Compare floating points or arrays of floating points.
Here the type T can be either a real or a complex number.
Return true if the relative distance between a and b is smaller than rel_tol time epsillon.
rel_tol = 1, typename T, std::size_t N>almost_equal(const std::array<T, N> &f1, const std::array<T, N> &f2)¶Return true if the relative distance between all the elements of same index is smaller than rel_tol time epsillon.
rel_tol = 1, typename T>almost_equal(const std::vector<T> &f1, const std::vector<T> &f2)¶Return true if f1.size() == f2.size() anf if the relative distance
between all the elements of same index is smaller than rel_tol time epsillon.