Next: , Previous: Combination allocation, Up: Combinations   [Index]

10.3 Accessing combination elements

The following function can be used to access the elements of a combination.

Function: size_t gsl_combination_get (const gsl_combination * c, const size_t i)

This function returns the value of the i-th element of the combination c. If i lies outside the allowed range of 0 to k-1 then the error handler is invoked and 0 is returned. An inline version of this function is used when HAVE_INLINE is defined.