Constructor

NumCosmoMathVectornew_array

Declaration [src]

NcmVector*
ncm_vector_new_array (
  GArray* a
)

Description [src]

This function saves a internally and frees it when it is no longer necessary. The a array must not be freed.

Parameters

a

Type: An array of double

Array of doubles to be converted into a NcmVector.

The data is owned by the caller of the function.

Return value

Type: NcmVector

A new NcmVector.

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