adresses SonarQube comments

This commit is contained in:
2025-10-08 18:19:17 +02:00
parent 5329be816e
commit 516ef88d10
3 changed files with 15 additions and 9 deletions

View File

@@ -59,7 +59,7 @@ template <typename T, uint8_t ClusterSizeX, uint8_t ClusterSizeY,
Eta2<T>
calculate_eta2(const Cluster<T, ClusterSizeX, ClusterSizeY, CoordType> &cl) {
assert(ClusterSizeX > 1 && ClusterSizeY > 1);
static_assert(ClusterSizeX > 1 && ClusterSizeY > 1);
Eta2<T> eta{};
size_t cluster_center_index =