Learn R Programming

ergmclust (version 1.0.0)

rowsum_Mat: C++ function for row-wise numeric calculation in a matrix for a static binary undirected network.

Description

The C++ function rowsum_Mat() calculates the sum of each row in a matrix in a static binary undirected network.

Usage

rowsum_Mat(M)

Arguments

M

A matrix of numeric type.

Value

Returns a vector as the sum of each row in the input matrix.