Method
NumCosmoMathVectorget_subvector_stride
Declaration [src]
NcmVector*
ncm_vector_get_subvector_stride (
NcmVector* cv,
const gsize k,
const gsize size,
const gsize stride
)
Description [src]
This function returns a new NcmVector which is a subvector of the vector cv.
The start of the new vector is the component k from the original vector cv.
The new vector has size elements.
Parameters
k-
Type:
const gsizeComponent index of the original vector.
size-
Type:
const gsizeNumber of components of the subvector.
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 NcmVector.
| The caller of the method takes ownership of the returned data, and is responsible for freeing it. |