Constructor
NumCosmoMathVectorconst_new_data
Declaration [src]
const NcmVector*
ncm_vector_const_new_data (
const gdouble* d,
const gsize size,
const gsize stride
)
Description [src]
This function returns a constant NcmVector of the array d.
The memory allocated is kept during all time life of the object and
must not be freed during this period.
Parameters
d-
Type: An array of
doublePointer to the first double allocated.
The data is owned by the caller of the function. size-
Type:
const gsizeNumber of doubles allocated.
stride-
Type:
const gsizeThe step-size from one element to the next in physical memory, measured in units of double.
Return value
Type: NcmVector
A new constant NcmVector.
| The data is owned by the called function. |