#pragma once #include #include #include // std::find #include #include #include #include // stoi #include // round #include #include // [[Rcpp::depends(RcppArmadillo)]] constexpr float INFINITE_FLOAT = std::numeric_limits::max (); constexpr double INFINITE_DOUBLE = std::numeric_limits::max (); constexpr int INFINITE_INT = std::numeric_limits::max (); typedef size_t index_t; typedef std::unordered_map int2int_map_t; typedef std::unordered_map indx2int_map_t; typedef std::unordered_map int2indx_map_t; typedef std::unordered_set intset_t; typedef std::unordered_map int2intset_map_t; typedef std::unordered_set indxset_t; typedef std::unordered_map int2indxset_map_t;