{ "metadata": { "name": "" }, "nbformat": 3, "nbformat_minor": 0, "worksheets": [ { "cells": [ { "cell_type": "heading", "level": 1, "metadata": {}, "source": [ "11.3.7 Implementing the QR Factorization" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "With this notebook, you will implement the QR factorization of a matrix $ A $ with linearly independent columns, producing matrices $ Q $ and $ R $ such that $ A = Q R $. The algorithm is equivalent to performing Gram-Schmidt orthogonalization on the vectors that are the columns of $ A $.\n", "\n", " Be sure to make a copy!!!! \n", "\n", "
QR_Gram_Schmidt_unb
\n",
"with the Spark webpage for the algorithm\n",
"\n",
"Hints:\n",
" q1
. This will mean first copying a1
to q1
.\n",
" laff.copy ( x, y )
\n",
" laff.gemv ( trans, alpha, A, x, beta, y )
\n",
" laff.norm2 ( x )
rho11[:,:] = laff.norm2
.\n",
" laff.invscal ( alpha, x )
\n",
"