GNU Scientific Library – Reference Manual: Multiset properties

Next: Multiset functions, Previous: Accessing multiset elements, Up: Multisets [Index]

### 11.4 Multiset properties

Function: size_t gsl_multiset_n (const gsl_multiset * c)

  This function returns the range (n) of the multiset c.

Function: size_t gsl_multiset_k (const gsl_multiset * c)

  This function returns the number of elements (k) in the multiset c.

Function: size_t * gsl_multiset_data (const gsl_multiset * c)

  This function returns a pointer to the array of elements in the multiset c.

Function: int gsl_multiset_valid (gsl_multiset * c)

  This function checks that the multiset c is valid. The k elements should lie in the range 0 to n-1, with each value occurring in nondecreasing order.