
Chapter 17
Using Vectors with the GSL
17.1 Introduction
This chapter presents an overview of vectors, implementation techniques with
programming in C and the GSL, and a summary of computing with vectors. In gen-
eral, an array is a term used in programming and defined as a data structure that is
a collection of values and these values are organized in several ways. The follow-
ing arrays: X, Y , and Z have their data arranged in different manners. Array X is a
one-dimensional array with n elements and it is considered a row vector because its
elements x
1
,x
2
,.. .,x
n
are arranged in a single row.
X = [x
1
x
2
x
3
··· x
n
] Z =
z
1
z
2
z
3
.
.
.
z
m
Array Z is also ...