Constructor

NumCosmoMathVectornew

Declaration [src]

NcmVector*
ncm_vector_new (
  gsize n
)

Description [src]

This function allocates memory for a new NcmVector of doubles with n components.

Parameters

n

Type: gsize

Defines the size of the vector.

Return value

Type: NcmVector

A new NcmVector.

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