Return local index in the vector of FABs.
| 117 | |
| 118 | //! Return local index in the vector of FABs. |
| 119 | [[nodiscard]] int localindex (int K) const noexcept { |
| 120 | auto low = std::ranges::lower_bound(indexArray, K); |
| 121 | if (low != indexArray.end() && *low == K) { |
| 122 | return static_cast<int>(low - indexArray.begin()); |
| 123 | } |
| 124 | else { |
| 125 | return -1; |
| 126 | } |
| 127 | } |
| 128 | |
| 129 | //! Return constant reference to associated DistributionMapping. |
| 130 | [[nodiscard]] const DistributionMapping& DistributionMap () const noexcept { return distributionMap; } |
no test coverage detected