Method

NumCosmoMathMatrixset_diag

Declaration [src]

void
ncm_matrix_set_diag (
  NcmMatrix* cm,
  NcmVector* diag
)

Description [src]

This function copies de the elements of the vector diag to the diagonal elements of the matrix cm.

Parameters

diag

Type: NcmVector

A NcmVector.

The data is owned by the caller of the method.