Constructor
NumCosmoMathVectornew_full
Declaration [src]
NcmVector*
ncm_vector_new_full (
gdouble* d,
gsize size,
gsize stride,
gpointer pdata,
GDestroyNotify pfree
)
Description [src]
This function returns a NcmVector of the array d.
This function saves userdata internally and frees it using free
when it is no longer necessary.
Parameters
d-
Type: An array of
doublePointer to the first double allocated.
The data is owned by the caller of the function. size-
Type:
gsizeNumber of doubles allocated.
stride-
Type:
gsizeThe step-size from one element to the next in physical memory, measured in units of double.
pdata-
Type:
gpointerDescending data pointer.
The argument can be NULL.The data is owned by the caller of the function. pfree-
Type:
GDestroyNotifyFree function to be called when destroying the vector.
The argument can be NULL.
Return value
Type: NcmVector
A new NcmVector.
| The caller of the function takes ownership of the data, and is responsible for freeing it. |