Method

NumCosmoMathMatrixfill_rand_cor

Declaration [src]

void
ncm_matrix_fill_rand_cor (
  NcmMatrix* cm,
  const gdouble cor_level,
  NcmRNG* rng
)

Description [src]

Overwrite cm with a random correlation matrix, the parameter cor_level controls the correlation between entries the lower cor_level more correlated the entries are.

Parameters

cor_level

Type: const gdouble

Correlation level parameter.

rng

Type: NcmRNG

A NcmRNG.

The data is owned by the caller of the method.