Skip to content

Commit 6aa0ca7

Browse files
committed
B() operator with nonzero form now handles proposals and other inputs involving multiple toggles correctly.
1 parent 581f93a commit 6aa0ca7

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

DESCRIPTION

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Package: ergm
2-
Version: 4.8.0-7525
3-
Date: 2024-12-29
2+
Version: 4.8.0-7532
3+
Date: 2025-01-02
44
Title: Fit, Simulate and Diagnose Exponential-Family Models for Networks
55
Authors@R: c(
66
person(c("Mark", "S."), "Handcock", role=c("aut"), email="handcock@stat.ucla.edu"),

src/wtchangestats_operator.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -116,12 +116,10 @@ WtC_CHANGESTAT_FN(c_import_binary_term_nonzero){
116116
GET_AUX_STORAGE(Network, bnwp);
117117
GET_STORAGE(Model, m);
118118

119-
120119
if((weight!=0)!=(edgestate!=0)){ // If going from 0 to nonzero or vice versa...
121120
ChangeStats1(tail, head, bnwp, m, edgestate!=0);
121+
memcpy(CHANGE_STAT, m->workspace, N_CHANGE_STATS*sizeof(double));
122122
}
123-
124-
memcpy(CHANGE_STAT, m->workspace, N_CHANGE_STATS*sizeof(double));
125123
}
126124

127125
WtZ_CHANGESTAT_FN(z_import_binary_term_nonzero){

0 commit comments

Comments
 (0)