Skip to content

Commit

Permalink
fixed save permutation inds memory bug
Browse files Browse the repository at this point in the history
  • Loading branch information
lambday committed Aug 11, 2016
1 parent dcac98e commit a522be4
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -203,7 +203,7 @@ struct PermutationMMD : ComputeMMD
CMath::permute(sg_wrapper);
if (m_save_inds)
{
auto offset=n*m_num_null_samples;
auto offset=n*sg_wrapper.size();
std::copy(sg_wrapper.data(), sg_wrapper.data()+sg_wrapper.size(), &m_all_inds.matrix[offset]);
}
for (size_t i=0; i<m_permuted_inds.size(); ++i)
Expand Down

0 comments on commit a522be4

Please sign in to comment.