35template <
typename Variable>
43template <base::concepts::real_scalar_dense_vector Variable>
61 return norm(var1 - var2);
70template <base::concepts::real_scalar Variable>
89 return abs(var1 - var2);
typename Variable::Scalar value_type
Type of resulting values.
auto operator()(const variable_type &var1, const variable_type &var2) const noexcept -> value_type
Calculate a distance.
Variable variable_type
Type of variables.
Class to calculate Euclidean distance.
auto norm(const Matrix &matrix)
Calculate norm of a matrix.
Namespace of distance functions for RBF interpolation.
Definition of norm class.
Definition of real_scalar concept.
Definition of real_scalar_dense_vector concept.