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.
Return value
Type: NcmMatrix
The matrix $S$.
| The caller of the method takes ownership of the returned data, and is responsible for freeing it. |