96 std::tuple<std::size_t, std::size_t, std::size_t, std::size_t>
const& pi =
m_indices[i];
97 std::tuple<std::size_t, std::size_t, std::size_t, std::size_t>
const& pj =
m_indices[j];
98 std::size_t batch_si = std::get<0>(pi);
99 std::size_t index_si = std::get<1>(pi);
100 std::size_t batch_gi = std::get<2>(pi);
101 std::size_t index_gi = std::get<3>(pi);
102 std::size_t batch_sj = std::get<0>(pj);
103 std::size_t index_sj = std::get<1>(pj);
104 std::size_t batch_gj = std::get<2>(pj);
105 std::size_t index_gj = std::get<3>(pj);
115 return (k_gi_gj - k_gi_sj - k_si_gj + k_si_sj);