Linear Algebra: Lecture Slides For Chapter 2 of
Linear Algebra: Lecture Slides For Chapter 2 of
(Goodfellow 2016)
Scalars
• A scalar is a single number
(Goodfellow 2016)
Vectors
• A vector is a 1-D array of numbers:
(Goodfellow 2016)
Matrices
Column
• Example notation for type and shape:
(Goodfellow 2016)
Tensors
• A tensor is an array of numbers, that may have
• or more dimensions.
(Goodfellow 2016)
Matrix Transpose
(Goodfellow 2016)
Matrix (Dot) Product
m = m • n
p
p n Must
match
(Goodfellow 2016)
Identity Matrix
(Goodfellow 2016)
Systems of Equations
expands to
(Goodfellow 2016)
Solving Systems of
Equations
• A linear system of equations can have:
• No solution
• Many solutions
(Goodfellow 2016)
Matrix Inversion
• Matrix inverse:
(Goodfellow 2016)
Invertibility
(Goodfellow 2016)
Norms
• Functions that measure how “large” a vector is
(Goodfellow 2016)
Norms
• Lp norm
• L1 norm, p=1:
(Goodfellow 2016)
Special Matrices and
Vectors
• Unit vector:
• Symmetric Matrix:
• Orthogonal matrix:
(Goodfellow 2016)
Eigendecomposition
(Goodfellow 2016)
Effect of Eigenvalues
(Goodfellow 2016)
Singular Value
Decomposition
• Similar to eigendecomposition
(Goodfellow 2016)
Moore-Penrose
Pseudoinverse
(Goodfellow 2016)
Computing the
Pseudoinverse
(Goodfellow 2016)
Trace
(Goodfellow 2016)
Learning linear algebra
(Goodfellow 2016)