Method
NumCosmoMathMatrixget_submatrix
Declaration [src]
NcmMatrix*
ncm_matrix_get_submatrix (
NcmMatrix* cm,
const guint k1,
const guint k2,
const guint nrows,
const guint ncols
)
Description [src]
This function returns a submatrix NcmMatrix of the matrix cm.
The upper-left element of the submatrix is the element (k1,k2) of the original matrix.
The submatrix has nrows rows and ncols columns.
Parameters
k1-
Type:
const guintRow index of the original matrix
cm. k2-
Type:
const guintColumn index of the original matrix
cm. nrows-
Type:
const guintNumber of rows of the submatrix.
ncols-
Type:
const guintNumber of columns of the submatrix.
Return value
Type: NcmMatrix
A NcmMatrix.
| The caller of the method takes ownership of the returned data, and is responsible for freeing it. |