Skip to contents

Generates a random \(d \times d\) symmetric positive definite matrix. This is done by generating a random \(d \times d\) matrix B, then computing B %*% t(B), and then normalizing the matrix to approximately single digit entries.

Usage

generate_random_spd_matrix(d, bMin = -10, bMax = 10, ...)

Arguments

d

Number of rows/columns

bMin

Minimum value of entries in B

bMax

Maximum value of entries in B

...

Ignored, only allowed for compatibility