- publishing free software manuals
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)

Get a printed copy>>>

8.3.3 Initializing vector elements

Function: void gsl_vector_set_all (gsl_vector * v, double x)
This function sets all the elements of the vector v to the value x.
Function: void gsl_vector_set_zero (gsl_vector * v)
This function sets all the elements of the vector v to zero.
Function: int gsl_vector_set_basis (gsl_vector * v, size_t i)
This function makes a basis vector by setting all the elements of the vector v to zero except for the i-th element which is set to one.
ISBN 0954612078GNU Scientific Library Reference Manual - Third Edition (v1.12)See the print edition