Constructor

NumCosmoMathMatrixnew_data_malloc

Declaration [src]

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

Description [src]

This function returns a NcmMatrix of the array d allocated using malloc. It saves d internally and frees it when it is no longer necessary.

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 guint

Number of rows.

ncols

Type: const guint

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