Method

NumCosmoMathMatrixget_diag

Declaration [src]

void
ncm_matrix_get_diag (
  NcmMatrix* cm,
  NcmVector* diag
)

Description [src]

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

Parameters

diag

Type: NcmVector

A NcmVector.

The data is owned by the caller of the method.