Member of the linalgebra class.
[h, t] = hess(a)
Converts a matrix to Hessenberg form and returns the unitary transformation matrix. The Hessenberg form of a matrix has elements equal to 0 below the first subdiagonal.
| Name | Description |
| a | Specifies a square matrix. |
| Name | Description |
| h | Returns a in Hessenberg form. h is a matrix of the same size as a. If a is a symmetric or Hermitian matrix, h is tridiagonal. |
| t | Returns the unitary transformation matrix. t is a matrix of the same size as a. |
The Hessenberg matrix h satisfies the following unitary similarity transformation: a = t*h*t' with t*t' = t'*t = eye(size(a)).
A = [2, -4, 7; -1, 9, 0; -4, -7, 3]
[H, T] = hess(A)
C = T*H*T'
D = T*T'