# Week 3 - Matrix-Vector Operations

## 1. Special Matrices

• Special Vectors:

• Unit Vector: Any vector of length one (unit length). For example, the vector $\begin{pmatrix}\frac{\sqrt{2}}{2} \\ \frac{\sqrt{2}}{2}\end{pmatrix}$ has length one.
• Standard Unit Vector:

## 5. Scaling a Matrix

• Consider $y := Ax+y\ \text{, where } A \in R^{m \times n}$ :
• Since A has $m \times n = mn$ elements, $y := Ax+y$, requires mn multiplies and mn adds, for a total of 2mn ﬂoating point operations (ﬂops).