H = hess(A)
[P, H] = hess(A)
| Parameter | Description |
|---|---|
| A | square numeric matrix. |
| Parameter | Description |
|---|---|
| H | upper Hessenberg matrix similar to A. |
| P | unitary transformation matrix satisfying A = P * H * P'. |
hess reduces a square numeric matrix to upper Hessenberg form by unitary similarity transformations.
With two outputs, hess also returns the accumulated transformation matrix P such that A = P * H * P'.
A = [1 2 3; 4 5 6; 7 8 10];
[P, H] = hess(A);
residual = norm(A - P * H * transpose(P), 'fro')
| Version | Description |
|---|---|
| 2.0.0 | initial version |