Method

NumCosmoMathVectordup_array

Declaration [src]

GArray*
ncm_vector_dup_array (
  NcmVector* cv
)

Description [src]

This function allocates a new array and copy the contents of the vector cv into it. The array must not be freed.

Return value

Type: An array of double

A new pointer to a double GArray.

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