Constructor

NumCosmoMathMatrixconst_new_data

Declaration [src]

const NcmMatrix*
ncm_matrix_const_new_data (
  const gdouble* d,
  guint nrows,
  guint ncols
)

Description [src]

This function returns a constant NcmMatrix of the array d. The memory allocated is kept during all time life of the object and must not be freed during this period.

Parameters

d

Type: const gdouble*

Pointer to the first double allocated.

The data is owned by the caller of the function.
nrows

Type: guint

Number of rows.

ncols

Type: guint

Number of cols.

Return value

Type: NcmMatrix

A new constant NcmMatrix.

The data is owned by the called function.