hess
- :
H =hess(A)¶ - :
[P, H] =hess(A)¶ - :
[AA, BB, Q, Z] =hess(A, B)¶ Reduce the square matrix A to upper Hessenberg form.
The result H is similar to A and has only zeros below its first subdiagonal. When two outputs are requested, P is the orthogonal (for complex A: unitary) matrix of the transformation, so that
P * H * P'equals A.With two square inputs,
hess (A, B)produces an upper Hessenberg AA, upper triangular BB, and unitary Q, Z such thatQ*A*Z = AAandQ*B*Z = BB.Single precision input gives single precision output. A complex matrix produces complex factors. Inputs must be dense single or double matrices.