Constructor

NumCosmoMathVectornew_data_dup

Declaration [src]

NcmVector*
ncm_vector_new_data_dup (
  gdouble* d,
  const gsize size,
  const gsize stride
)

Description [src]

This function returns a NcmVector of the array d. It allocate a new vector and copy the contents of d into it.

Parameters

d

Type: An array of double

Pointer to the first double allocated.

The data is owned by the caller of the function.
size

Type: const gsize

Number of doubles allocated.

stride

Type: const gsize

The step-size from one element to the next in physical memory, measured in units of double.

Return value

Type: NcmVector

A new NcmVector.

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