Constructor
NumCosmoMathMatrixnew_full
Declaration [src]
NcmMatrix*
ncm_matrix_new_full (
gdouble* d,
guint nrows,
guint ncols,
guint tda,
gpointer pdata,
GDestroyNotify pfree
)
Description [src]
This function allocates memory for a new NcmMatrix of doubles
with nrows rows and ncols columns.
Parameters
d-
Type:
gdouble*Pointer to the data.
The data is owned by the caller of the function. nrows-
Type:
guintNumber of rows.
ncols-
Type:
guintNumber of columns.
tda-
Type:
guintRow trailing dimension.
pdata-
Type:
gpointerDescending data pointer.
The argument can be NULL.The data is owned by the caller of the function. pfree-
Type:
GDestroyNotifyFree function to be called when destroying the matrix.
The argument can be NULL.
Return value
Type: NcmMatrix
A new NcmMatrix.
| The caller of the function takes ownership of the data, and is responsible for freeing it. |