Fuzzy testing of index and value of regular axis
Ouverte
- Langage dominant
- C++
- Étoiles
- 334
- Forks
- 76
- Métriques de merge des PR
- Aucune PR mergée en 30 j
Description
While we cannot avoid round-off error in the `index` and `value` methods of the `regular` axis, we want these two to be exact inverses of each other. In other words, this should succeed for all values of `nbin`, `start`, `stop`.
```cpp
auto a = regular(nbin, start, stop);
for (int i =0; i < nbin; ++i)
assert(a.index(a.value(i)) == i);
```
This needs to verified with fuzzy testing.
Guide de contribution
Ouvrir le guide de contribution
Évaluation
Cette issue n'a pas encore été évaluée.