Constructor

NumCosmoMathCatalognew_full

Declaration [src]

NcmCatalog*
ncm_catalog_new_full (
  guint nrows,
  GStrv col_names,
  const NcmCatalogColType* col_types,
  guint n_types
)

Description [src]

Creates a new NcmCatalog with nrows rows and the columns named by col_names, with all values initialized to zero. Each column carries the logical type given in col_types (which must have one entry per column).

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

Type: An array of NcmCatalogColType

The per-column logical types.

The length of the array is specified in the n_types argument.
The data is owned by the caller of the function.
n_types

Type: guint

The number of entries in col_types.

Return value

Type: NcmCatalog

A new NcmCatalog.

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