題組內容

3. Let $\mathbf{B} = \begin{bmatrix} \frac{1}{\sqrt{2}} & 0 & \frac{1}{\sqrt{2}} \\ 0 & 1 & 0 \\ -\frac{1}{\sqrt{2}} & 0 & \frac{1}{\sqrt{2}} \\ 0 & 1 & 0 \end{bmatrix}$.

(b) \( (10\%) \) Compute the Gram-Schmidt QR factorization of the matrix B.