Constructor
NumCosmoMathMatrixnew_data_slice
Declaration [src]
NcmMatrix*
ncm_matrix_new_data_slice (
gdouble* d,
const guint nrows,
const guint ncols
)
Description [src]
This function returns a NcmMatrix of the array d allocated using g_slice function.
It saves d internally and frees it when it is no longer necessary.
The matrix has nrows rows and ncols columns.
The physical number of columns in memory is also given by ncols.
This constructor is not directly available to language bindings.
Parameters
d-
Type:
gdouble*Pointer to the first double allocated.
The data is owned by the caller of the function. nrows-
Type:
const guintNumber of rows.
ncols-
Type:
const guintNumber of columns.
Return value
Type: NcmMatrix
A new NcmMatrix.
| The caller of the function takes ownership of the data, and is responsible for freeing it. |