Skip to content

Commit

Permalink
Per #2887, reset Npairs = 0 for ContingencyTable::zero_out()
Browse files Browse the repository at this point in the history
  • Loading branch information
JohnHalleyGotway committed Oct 7, 2024
1 parent 17dc1b7 commit ace7c1b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/libcode/vx_statistics/contable.cc
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,7 @@ void ContingencyTable::assign(const ContingencyTable & t) {
void ContingencyTable::zero_out() {

fill(E.begin(), E.end(), 0.0);
Npairs = 0;

return;
}
Expand Down

0 comments on commit ace7c1b

Please sign in to comment.