Method

NumCosmoMathVectorget_subvector

Declaration [src]

NcmVector*
ncm_vector_get_subvector (
  NcmVector* cv,
  const gsize k,
  const gsize size
)

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 gsize

Component index of the original vector.

size

Type: const gsize

Number of components of the subvector.

Return value

Type: NcmVector

A NcmVector.

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