1. Set
this makes the first
vector a unit-vector
2. For
do
Compute
z=Abj next vector
spanning the subspace.
For
do
Compute
hij=biTz
Compute
z=z-hijbi
Compute
and
bj+1=z/hj+1,j make
bj+1 a
unit vector.
The computed basis
Bm is orthonormal and the
upper
Hessenberg matrix
Hm, formed by the coefficients hij satisfies
the relationship