Template Function librapid::dist(const GenericVector<Scalar, Dims>&, const GenericVector<Scalar, Dims>&)#

Function Documentation#

template<typename Scalar, int64_t Dims>
Scalar librapid::dist(const GenericVector<Scalar, Dims> &lhs, const GenericVector<Scalar, Dims> &rhs)#

Calculate the distance between two vectors

Template Parameters
  • Scalar – The scalar type of the vectors

  • Dims – The dimensionality of the vectors

  • StorageType – The storage type of the vectors

Parameters
  • lhs – The first vector

  • rhs – The second vector

Returns

The distance between the two vectors