Method

NumCosmoMathISetget_subarray

Declaration [src]

GArray*
ncm_iset_get_subarray (
  NcmISet* iset,
  GArray* a,
  GArray* a_dup
)

Description [src]

Construct a continuous array using the values from a and the indexes in iset. If a_dup is not null use this array to build the subarray, otherwise, allocates a new array.

This method is not directly available to language bindings.

Parameters

a

Type: An array of gpointer

A GArray.

The data is owned by the caller of the method.
a_dup

Type: An array of gpointer

A GArray.

The data is owned by the caller of the method.

Return value

Type: An array of gpointer

The subarray.

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