Template Function librapid::isClose(const SIMDVector<Scalar, Dims>&, const SIMDVector<Scalar, Dims>&, double)#
Defined in File simdVector.hpp
Function Documentation#
-
template<typename Scalar, int64_t Dims>
bool librapid::isClose(const SIMDVector<Scalar, Dims> &a, const SIMDVector<Scalar, Dims> &b, double tolerance = -1)# Returns true if the two vectors are within the given tolerance of each other.
See also
isClose(const GenericVector<Scalar, Dims> &, const GenericVector<Scalar, Dims> &)
- Template Parameters
Scalar – The scalar type of the vectors
Dims – Number of dimensions of the vectors
- Parameters
a – The first vector
b – The second vector
tolerance – Tolerance
- Returns
True if the vectors are within the given tolerance of each other