summaryrefslogtreecommitdiff
path: root/graph/matching.cpp
diff options
context:
space:
mode:
authorGloria Mundi <gloria@gloria-mundi.eu>2024-06-05 19:06:13 +0200
committerGloria Mundi <gloria@gloria-mundi.eu>2024-06-05 19:06:13 +0200
commitde5584da1968cb83dca379ce6480ec7b2ab57732 (patch)
tree2e0f1320480147c87bfa2a7b32978ee401fd258f /graph/matching.cpp
parent2ff696b7a72f484f435ffc37dcacedb6fa434b3b (diff)
parent4680159f439b3b9651321e2dc9083a51fe6ce954 (diff)
merge mzuenni changes
Diffstat (limited to 'graph/matching.cpp')
0 files changed, 0 insertions, 0 deletions
lass="hl opt"><int>(1, 30); persistentArray<double> got(m); vector<double> cur(m); vector<pair<int, vector<double>>> expected; for (int i = 0; i < n; i++) { int op = Random::integer<int>(0, 20); if (op <= 10) { int j = Random::integer<int>(0, m); double x = Random::real<double>(-1'000, 1'000); auto t = got.set(j, x); if (!expected.empty() && t <= expected.rbegin()->first) cerr << "error: time travel" << FAIL; cur[j] = x;