is called a row vector, and a matrix that has only one column, such as
d =
is called a column vector. It is standard practice to identify vectors using lower-case rather than
upper-case letters. In books they are set in bold type. If you are writing them down by hand
then you should underline the letters and put
c
(or possibly y) and d (or possibly z)
This is a useful convention since it helps to distinguish scalar quantities such as x, y, a, b, which
denote single numbers, from vector quantities such as x, y, a, b, which denote matrices with
one row or column. Incidentally, it is actually quite expensive to print column vectors in books
and journals since it is wasteful on space, particularly if the number of elements is large. It is
then more convenient to use the transpose notation and write the vector horizontally. For
example, the 7 × 1 matrix d given above would be printed as
d = [ −3106−7192]
T
where the superscript T tells us that it is the column vector that is intended.
7.1.2 Addition and subtraction
Let us suppose that, for the two-customer three-product example, the matrix
A =
gives the sales for the month of January. Similarly, the monthly sales for February might be
given by
B =
This means, for example, that customer C1 buys 7 items of G1 in January and 6 items of G1 in
February. Customer C1 therefore buys a total of
7 + 6 = 13
items of G1 during the two months. A similar process can be applied to the remaining goods
and customers, so that the matrix giving the sales for the two months is
C =
=
We describe this by saying that C is the sum of the two matrices A and B and we write
C = A + B
J
K
L
13 5 5
1910
G
H
I
J
K
L
7 + 63 + 24 + 1
1 + 05 + 46 + 4
G
H
I
J
K
L
621
044
G
H
I
J
K
L
734
156
G
H
I
J
K
K
K
K
K
K
K
K
K
L
−3
10
6
−7
1
9
2
G
H
H
H
H
H
H
H
H
H
I
7.1 • Basic matrix operations
457
MFE_C07a.qxd 16/12/2005 10:45 Page 457