Skip to content

Commit

Permalink
B() operator with nonzero form now handles proposals and other inputs…
Browse files Browse the repository at this point in the history
… involving multiple toggles correctly.
  • Loading branch information
krivit committed Jan 2, 2025
1 parent 581f93a commit 6aa0ca7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
4 changes: 2 additions & 2 deletions DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Package: ergm
Version: 4.8.0-7525
Date: 2024-12-29
Version: 4.8.0-7532
Date: 2025-01-02
Title: Fit, Simulate and Diagnose Exponential-Family Models for Networks
Authors@R: c(
person(c("Mark", "S."), "Handcock", role=c("aut"), email="[email protected]"),
Expand Down
4 changes: 1 addition & 3 deletions src/wtchangestats_operator.c
Original file line number Diff line number Diff line change
Expand Up @@ -116,12 +116,10 @@ WtC_CHANGESTAT_FN(c_import_binary_term_nonzero){
GET_AUX_STORAGE(Network, bnwp);
GET_STORAGE(Model, m);


if((weight!=0)!=(edgestate!=0)){ // If going from 0 to nonzero or vice versa...
ChangeStats1(tail, head, bnwp, m, edgestate!=0);
memcpy(CHANGE_STAT, m->workspace, N_CHANGE_STATS*sizeof(double));
}

memcpy(CHANGE_STAT, m->workspace, N_CHANGE_STATS*sizeof(double));
}

WtZ_CHANGESTAT_FN(z_import_binary_term_nonzero){
Expand Down

0 comments on commit 6aa0ca7

Please sign in to comment.