Fuzzy testing of index and value of regular axis
オープン
- 主要言語
- C++
- スター
- 334
- フォーク
- 76
- PR マージ指標
- 30日以内にマージされた PR はありません
説明
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.
コントリビューションガイド
評価
この issue はまだ評価されていません。