Learn R Programming

graphonmix (version 0.0.1.0)

create_exp_matrix: Creates an nxn exponential matrix

Description

Creates an nxn matrix where the (i,j)th entry is exp(-(i+j)/scalar)

Usage

create_exp_matrix(nrow, scalar)

Value

An nxn matrix

Arguments

nrow

The dimension of the matrix

scalar

The scalar in exp(-(i+j)/scalar)

Examples

Run this code
W <- create_exp_matrix(100, 100)

Run the code above in your browser using DataLab