| GNU Scientific Library Reference Manual - Third Edition (v1.12) by M. Galassi, J. Davies, J. Theiler, B. Gough, G. Jungman, P. Alken, M. Booth, F. Rossi Paperback (6"x9"), 592 pages, 60 figures ISBN 0954612078 RRP £24.95 ($39.95) |
9.3 Accessing permutation elements
The following functions can be used to access and manipulate permutations.
- Function: size_t gsl_permutation_get (const gsl_permutation * p, const size_t i)
- This function returns the value of the i-th element of the permutation p. If i lies outside the allowed range of 0 to n-1 then the error handler is invoked and 0 is returned.
- Function: int gsl_permutation_swap (gsl_permutation * p, const size_t i, const size_t j)
- This function exchanges the i-th and j-th elements of the permutation p.
| ISBN 0954612078 | GNU Scientific Library Reference Manual - Third Edition (v1.12) | See the print edition |