Lec 1 Matrices
Lec 1 Matrices
A*B
A matrix is a rectangular array of numbers
enclosed in brackets.
The numbers in the array are called the
entries or elements of the matrix.
The size of a matrix is described in terms of
the number of rows (horizontal lines) and
columns (vertical lines) it contains.
The size of A is m x n – m rows and n columns
The size of the above matrices are 3X2 (read 3 by 2), 1X4, 3 X3,2X1,
and 1X1. In a size description, the first number always denotes the
number of rows and the second denotes the number of columns.
A matrix with only one column is called a
column matrix (or a column vector), e.g.
the 2X1 matrix in Example 1. A matrix with
only one row is called a row matrix (or a
row vector), e.g. the 1X 4
A general mXn matrix has a form:
Here 0 is zero matrix of size m x n , that is, a matrix with all entries zero.
IfA is any matrix and c is any scalar, then the
product cA is the matrix obtained by
multiplying each entry of the matrix A by c.
The matrix cA is said to be a scalar
multiple of A.
If A is an mXn matrix and B is an r X p
matrix, then the product C = AB exists if n =
r and C is an mXp matrix with entries:
That is, to get c jk , multiply each entry in the jth row of A by the
corresponding entry in the kth column of B and then add these n products.
The following figure illustrates
this.
Calculate the number of multiplication and addition
operations involved in the multiplication of two matrices.
# of additions = 4
# of multiplications = 8
C11 = a11b11+a12b21