Method

NumCosmoMathISetget_submatrix_colmajor_cols

Declaration [src]

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

Description [src]

Construct a continuous matrix rectangular $S$ using the columns from the rectangular 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. It writes the columns in $S$ using a colmajor memory scheme. This is useful when using the output matrix into Lapack routines.

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.