| 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.6 Copying vectors
Common operations on vectors such as addition and multiplication are available in the blas part of the library (see 12). However, it is useful to have a small number of utility functions which do not require the full blas code. The following functions fall into this category.
- Function: int gsl_vector_memcpy (gsl_vector * dest, const gsl_vector * src)
- This function copies the elements of the vector src into the vector dest. The two vectors must have the same length.
- Function: int gsl_vector_swap (gsl_vector * v, gsl_vector * w)
- This function exchanges the elements of the vectors v and w by copying. The two vectors must have the same length.
| ISBN 0954612078 | GNU Scientific Library Reference Manual - Third Edition (v1.12) | See the print edition |