Method

NumCosmoMathISetget_submatrix

Declaration [src]

NcmMatrix*
ncm_iset_get_submatrix (
  NcmISet* iset,
  NcmMatrix* M,
  NcmMatrix* M_dup
)

Description [src]

Construct a continuous matrix square $S$ using the values from the square matrix M and the indexes in iset. If M_dup is not null use this matrix to build the submatrix, otherwise, allocates a new matrix.

Parameters

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.