template<class T, class DataSource, typename _DistanceType = T, typename IndexType = uint32_t>
struct nanoflann::L2_Adaptor< T, DataSource, _DistanceType, IndexType >
Squared Euclidean distance functor (generic version, optimized for high-dimensionality data sets). Corresponding distance traits: nanoflann::metric_L2
- Template Parameters
-
| T | Type of the elements (e.g. double, float, uint8_t) |
| DataSource | Source of the data, i.e. where the vectors are stored |
| _DistanceType | Type of distance variables (must be signed) |
| IndexType | Type of the arguments with which the data can be accessed (e.g. float, double, int64_t, T*) |