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: guint

Number of rows.

ncols

Type: guint

Number of columns.

tda

Type: guint

Row trailing dimension.

pdata

Type: gpointer

Descending data pointer.

The argument can be NULL.
The data is owned by the caller of the function.
pfree

Type: GDestroyNotify

Free 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.