Method

NumCosmoMathISetget_sym_submatrix

Declaration [src]

NcmMatrix*
ncm_iset_get_sym_submatrix (
  NcmISet* iset,
  gchar UL,
  NcmMatrix* M,
  NcmMatrix* M_dup
)

Description [src]

Construct a continuous symmetric matrix $S$ using the values from M and the indexes in iset. If M_dup is not null use this matrix to build the submatrix, otherwise, allocates a new matrix. If UL == ‘U’/’L’ only the Upper/Lower triangle will be copied.

Parameters

UL

Type: gchar

Char indicating ‘U’pper or ‘L’ower matrix.

M

Type: NcmMatrix

A NcmMatrix.

The data is owned by the caller of the method.
M_dup

Type: NcmMatrix

A NcmMatrix.

The data is owned by the caller of the method.

Return value

Type: NcmMatrix

The matrix $S$.

The caller of the method takes ownership of the returned data, and is responsible for freeing it.