Template Function librapid::dist2(const SIMDVector<Scalar, Dims>&, const SIMDVector<Scalar, Dims>&)#
Defined in File simdVector.hpp
Function Documentation#
-
template<typename Scalar, int64_t Dims>
Scalar librapid::dist2(const SIMDVector<Scalar, Dims> &lhs, const SIMDVector<Scalar, Dims> &rhs)# Calculate the squared distance between two vectors
- Template Parameters
Scalar – The scalar type of the vectors
Dims – The dimensionality of the vectors
- Parameters
lhs – The first vector
rhs – The second vector
- Returns
The squared distance between the two vectors