if (_recover_cnt == 0 && _recover_cnt_var.empty()) { \
WARNING( \
fmt::format("No 'RECOVER' function found in estimation (Job: {}, Alg: {}).", _job_cnt + 1, _alg_cnt + 1)); \
_log.war() << "No 'RECOVER' function found in estimation (Job: " << _job_cnt + 1 << ", Alg: " << _alg_cnt \
<< ")." << std::endl; \
} else { \
if (!_recover_cnt_var.empty()) { \
\
recover_cnt = \
std::accumulate(_recover_cnt_var.begin(), _recover_cnt_var.end(), recover_cnt, \
[](const std::string& a, const std::string& b) { return a + " + (" + b + ")"; }); \
} \
_log.info() << "Found " << recover_cnt << " 'RECOVER' function(s) in estimation (Job: " << _job_cnt + 1 \
<< ", Alg: " << _alg_cnt << ")." << std::endl; \
\
LANG_CPP \
if (recover_cnt != "1") { \
f << "NMSE" << _job_cnt << "(ii, " << _alg_cnt - 1 << ") /= (" << recover_cnt << ");\n"; \
} \
f << "}"; \
END_LANG \
} \
_recover_cnt = 0; \
_recover_cnt_var.clear();
static std::string to_string(const T &x)
Change a number to string.
Definition: utils.h:203