Next: , Up: Permutations   [Index]

9.1 The Permutation struct

A permutation is defined by a structure containing two components, the size of the permutation and a pointer to the permutation array. The elements of the permutation array are all of type size_t. The gsl_permutation structure looks like this,

typedef struct
  size_t size;
  size_t * data;
} gsl_permutation;