Skip to content

Commit

Permalink
Merge branch 'master' into 4.7
Browse files Browse the repository at this point in the history
  • Loading branch information
krivit committed Oct 13, 2024
2 parents ff5681f + 04d2b70 commit 3522774
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 16 deletions.
2 changes: 1 addition & 1 deletion R/InitErgmTerm.R
Original file line number Diff line number Diff line change
Expand Up @@ -3592,7 +3592,7 @@ InitErgmTerm.mm<-function (nw, arglist, ..., version=packageVersion("ergm")) {

list(name = "mixmat",
coef.names = coef.names,
inputs = c(symm+marg*2, attrval$row$valcodes, attrval$col$valcodes, unlist(levels2codes)),
iinputs = c(symm+marg*2, attrval$row$valcodes, attrval$col$valcodes, unlist(levels2codes)),
dependence = FALSE,
minval = 0)
}
Expand Down
10 changes: 5 additions & 5 deletions src/changestats.c
Original file line number Diff line number Diff line change
Expand Up @@ -2603,11 +2603,11 @@ C_CHANGESTAT_FN(c_meandeg) {
General mixing matrix (mm) implementation.
*****************/
C_CHANGESTAT_FN(c_mixmat){
unsigned int symm = ((int)INPUT_PARAM[0]) & 1;
unsigned int marg = ((int)INPUT_PARAM[0]) & 2;
double *tx = INPUT_PARAM;
double *hx = BIPARTITE? INPUT_PARAM : INPUT_PARAM + N_NODES;
double *cells = BIPARTITE? INPUT_PARAM + N_NODES + 1: INPUT_PARAM + N_NODES*2 + 1;
unsigned int symm = IINPUT_PARAM[0] & 1;
unsigned int marg = IINPUT_PARAM[0] & 2;
int *tx = IINPUT_PARAM;
int *hx = BIPARTITE? IINPUT_PARAM : IINPUT_PARAM + N_NODES;
int *cells = BIPARTITE? IINPUT_PARAM + N_NODES + 1: IINPUT_PARAM + N_NODES*2 + 1;

unsigned int diag = tx[tail]==tx[head] && hx[tail]==hx[head];
for(unsigned int j=0; j<N_CHANGE_STATS; j++){
Expand Down
20 changes: 10 additions & 10 deletions src/wtchangestats.c
Original file line number Diff line number Diff line change
Expand Up @@ -1260,11 +1260,11 @@ WtS_CHANGESTAT_FN(s_transitiveweights_threshold){
General mixing matrix (mm) implementation.
*****************/
WtC_CHANGESTAT_FN(c_mixmat_sum){
unsigned int symm = ((int)INPUT_PARAM[0]) & 1;
unsigned int marg = ((int)INPUT_PARAM[0]) & 2;
double *tx = INPUT_PARAM;
double *hx = BIPARTITE? INPUT_PARAM : INPUT_PARAM + N_NODES;
double *cells = BIPARTITE? INPUT_PARAM + N_NODES + 1: INPUT_PARAM + N_NODES*2 + 1;
unsigned int symm = IINPUT_PARAM[0] & 1;
unsigned int marg = IINPUT_PARAM[0] & 2;
int *tx = IINPUT_PARAM;
int *hx = BIPARTITE? IINPUT_PARAM : IINPUT_PARAM + N_NODES;
int *cells = BIPARTITE? IINPUT_PARAM + N_NODES + 1: IINPUT_PARAM + N_NODES*2 + 1;

unsigned int diag = tx[tail]==tx[head] && hx[tail]==hx[head];
for(unsigned int j=0; j<N_CHANGE_STATS; j++){
Expand All @@ -1278,11 +1278,11 @@ WtC_CHANGESTAT_FN(c_mixmat_sum){
}

WtC_CHANGESTAT_FN(c_mixmat_nonzero){
unsigned int symm = ((int)INPUT_PARAM[0]) & 1;
unsigned int marg = ((int)INPUT_PARAM[0]) & 2;
double *tx = INPUT_PARAM;
double *hx = BIPARTITE? INPUT_PARAM : INPUT_PARAM + N_NODES;
double *cells = BIPARTITE? INPUT_PARAM + N_NODES + 1: INPUT_PARAM + N_NODES*2 + 1;
unsigned int symm = IINPUT_PARAM[0] & 1;
unsigned int marg = IINPUT_PARAM[0] & 2;
int *tx = IINPUT_PARAM;
int *hx = BIPARTITE? IINPUT_PARAM : IINPUT_PARAM + N_NODES;
int *cells = BIPARTITE? IINPUT_PARAM + N_NODES + 1: IINPUT_PARAM + N_NODES*2 + 1;

unsigned int diag = tx[tail]==tx[head] && hx[tail]==hx[head];
for(unsigned int j=0; j<N_CHANGE_STATS; j++){
Expand Down

0 comments on commit 3522774

Please sign in to comment.