@@ -43,17 +43,17 @@ namespace clue::internal {
4343 }
4444
4545 // Address the cases of underflow and overflow
46- coord_bin = internal:: math::min (coord_bin, nperdim - 1 );
47- coord_bin = internal:: math::max (coord_bin, 0 );
46+ coord_bin = math::min (coord_bin, nperdim - 1 );
47+ coord_bin = math::max (coord_bin, 0 );
4848
4949 return coord_bin;
5050 }
5151
5252 ALPAKA_FN_ACC inline constexpr int getGlobalBin (const float * coords) const {
5353 int global_bin = 0 ;
5454 for (auto dim = 0u ; dim != Ndim - 1 ; ++dim) {
55- global_bin += internal::math::pow ( static_cast < float >(nperdim), Ndim - dim - 1 ) *
56- getBin (coords[dim], dim);
55+ global_bin +=
56+ math::pow ( static_cast < float >(nperdim), Ndim - dim - 1 ) * getBin (coords[dim], dim);
5757 }
5858 global_bin += getBin (coords[Ndim - 1 ], Ndim - 1 );
5959 return global_bin;
@@ -63,7 +63,7 @@ namespace clue::internal {
6363 int32_t globalBin = 0 ;
6464 for (auto dim = 0u ; dim != Ndim; ++dim) {
6565 auto bin_i = wrapping[dim] ? (Bins[dim] % nperdim) : Bins[dim];
66- globalBin += internal:: math::pow (static_cast <float >(nperdim), Ndim - dim - 1 ) * bin_i;
66+ globalBin += math::pow (static_cast <float >(nperdim), Ndim - dim - 1 ) * bin_i;
6767 }
6868 return globalBin;
6969 }
@@ -102,10 +102,9 @@ namespace clue::internal {
102102 std::array<float , Ndim> distance_vector;
103103 for (auto dim = 0u ; dim != Ndim; ++dim) {
104104 if (wrapping[dim])
105- distance_vector[dim] =
106- internal::math::fabs (normalizeCoordinate (coord_i[dim] - coord_j[dim], dim));
105+ distance_vector[dim] = math::fabs (normalizeCoordinate (coord_i[dim] - coord_j[dim], dim));
107106 else
108- distance_vector[dim] = internal:: math::fabs (coord_i[dim] - coord_j[dim]);
107+ distance_vector[dim] = math::fabs (coord_i[dim] - coord_j[dim]);
109108 }
110109 return distance_vector;
111110 }
0 commit comments