Constructor

NumCosmoMathMatrixnew_data_static

Declaration [src]

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

Description [src]

This function returns a 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.

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.