Constructor

NumCosmoMathVectornew_variant

Declaration [src]

NcmVector*
ncm_vector_new_variant (
  GVariant* var
)

Description [src]

This function convert a GVariant array to a NcmVector allocating new memory for the vector.

Parameters

var

Type: GVariant

A GVariant of the type “ad”.

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.