Template Function rcppsw::math::l2norm_squared

Function Documentation

template<typename T, typename std::enable_if<rmpl::is_detected<detail::length_func_decltype, T>::value, int>::type = 0>
static inline double rcppsw::math::l2norm_squared(const T &lhs, const T &rhs)

Computes the square of the euclidean distance between the passed vectors.