| 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) |
8.3.7 Exchanging elements
The following function can be used to exchange, or permute, the elements of a vector.
- Function: int gsl_vector_swap_elements (gsl_vector * v, size_t i, size_t j)
- This function exchanges the i-th and j-th elements of the vector v in-place.
- Function: int gsl_vector_reverse (gsl_vector * v)
- This function reverses the order of the elements of the vector v.
| ISBN 0954612078 | GNU Scientific Library Reference Manual - Third Edition (v1.12) | See the print edition |