Constructor

NumCosmoMathCatalognew

Declaration [src]

NcmCatalog*
ncm_catalog_new (
  guint nrows,
  GStrv col_names
)

Description [src]

Creates a new NcmCatalog with nrows rows and the columns named by col_names, with all values initialized to zero.

Parameters

nrows

Type: guint

The number of rows.

col_names

Type: An array of utf8

The column names.

The array must be NULL-terminated.
Each element is a NUL terminated UTF-8 string.

Return value

Type: NcmCatalog

A new NcmCatalog.

The caller of the function takes ownership of the data, and is responsible for freeing it.