Skip to contents

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

Usage

create_exp_matrix(nrow, scalar)

Arguments

nrow

The dimension of the matrix

scalar

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

Value

An nxn matrix

Examples

W <- create_exp_matrix(100, 100)