Learn R Programming

ergmclust (version 1.0.0)

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

Description

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

Usage

rowsum_dir_Mat(M)

Arguments

M

A matrix of numeric type.

Value

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