Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions src/radmeth/radmeth.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -305,6 +305,8 @@ that the design matrix and the proportion table are correctly formatted.

const int n_param_bytes = [&] {
std::int32_t n_bytes = 0;
if (p_estim_alt.empty())
p_estim_alt.resize(n_groups, 0.0);
for (auto g_idx = 0u; g_idx < n_groups; ++g_idx) {
const int n = std::sprintf(cursor, "\t%f", p_estim_alt[g_idx]);
cursor += n;
Expand Down