Utility Functions¶
Defined in tools/utils.hpp
-
template<class
Ordinal, classReal>
autosarma::utils::get_prob(const Ordinal M, const Ordinal P, const Ordinal Q, const Real prob)¶
-
template<typename
Value>
autosarma::utils::trans(std::vector<std::vector<Value>> loads, bool symmetric)¶
-
template<typename
Iter, typenameInt>
std::size_tsarma::utils::lowerbound_index(Iter begin, Iter end, Int v)¶
-
template<typename
Int>
std::size_tsarma::utils::lowerbound_index(const std::vector<Int> &v_arr, Int v)¶
-
inline auto
sarma::utils::get_matrix_type(std::istream &in)¶
-
inline auto
sarma::utils::sparse_mask(const size_t N, const double keep_prob = 1.0, const int seed = 1)¶