gamma_update_weighted_stat_undir: C++ function for updating the variable 'gamma' (variational...

View source: R/RcppExports.R

gamma_update_weighted_stat_undirR Documentation

C++ function for updating the variable gamma (variational parameters) in a weighted static binary undirected network.

Description

The C++ function gamma_update_weighted_stat_undir() updates the value of variable gamma (variational parameters) in a weighted static binary undirected network.

Usage

gamma_update_weighted_stat_undir(gamma, pi, theta, block_dens_mat, adjmat, N, K)

Arguments

gamma

Vector of current gamma (variational parameters) values.

pi

Vector of current pi (mixture proportions) values.

theta

Vector of current theta (network canonical parameters) values.

block_dens_mat

Array of a network density matrices.

adjmat

Array of a network adjacency matrices.

N

Number of nodes.

K

Number of clusters.

Value

Returns all quadratic and linear term coefficients for the quadratic programs corresponding to all nodes.


ergmclust documentation built on March 16, 2026, 5:06 p.m.