Started moving toward dynamical allocation; removed the _loc variables which were only used in the zeroth step and were pretty unnecessary anyway

This commit is contained in:
Yohai Meiron 2020-04-03 21:40:11 -04:00
parent ea94dbb626
commit 99ec3064ed
2 changed files with 59 additions and 118 deletions

View file

@ -5,6 +5,8 @@
#include <algorithm>
#include <limits>
// Would be a bit more elegant to do the whole thing with std::variant.
using Dictionary = std::unordered_map<std::string,std::string>;
static constexpr double nix = -std::numeric_limits<double>::max(); // avoid nans