Skip to content

__housh__

linear-algebra · scripts/linear-algebra/__housh__.m

: [housv, beta, zer] = housh (x, j, z)

Householder reflection data for the vector x.

With P = eye (n) - beta * housv * housv' the product P * x annihilates all entries of x except entry j. The vector is scaled by its largest magnitude first; if the scaled 2-norm does not exceed z (or x is zero) no reflection is formed and zer is true with beta equal to zero.