Professional Documents
Culture Documents
Background Notes - Scientific Computing Michael T Heath
Background Notes - Scientific Computing Michael T Heath
Background Notes - Scientific Computing Michael T Heath
Rupam Mahmood
Jan 11, 2024
Vectors and Matrices notations used in the book
Vector notations
● A vector is an ordered collection of numbers
● We can also write A 𝜖 M(3, 2), where M is the space of all 3 by 2 matrices
● Vectors can be seen as special matrices, M(m, 1) being a column vector, and
M(1, n) being a row vector
Notations for elements of vectors and matrices
● For a matrix B, the element at row i and column k is denoted by bi,k or bik
○ Here the elements are of matching letter but lowercase non-bold because they are scalars
○ It also allows us to denote parts of a matrix, for example, [B]i,: denotes the ith row of B
Dot product of two vectors
● A dot product of two vectors x and y with matching dimensions n is given by
● In this course, we will denote such dot products as xTy, which is equivalent to
the following matrix multiplication
2. What is xyT?
a. A non-square matrix
b. A vector
c. A square matrix
d. A scalar
4. What is xTAy?
a. A matrix
b. A scalar
c. A vector
Example of matrix-vector multiplication
Prove the following:
= 0 - 2 ATb + 2ATAx
= -2AT(b - Ax).
Gradients: example 2
A is symmetric
Vectors, Matrices, and derivatives: resources
● Vectors and matrices (eclass)
● derivatives (eclass)