|
Basilisk CFD
Adaptive Cartesian mesh PDE framework
|
Go to the source code of this file.
Functions | |
| static void | givens (double x, double y, double *c, double *s) |
| void | solve_hessenberg (double H[nl *nl], double x[nl]) |
An Hessenberg matrix is an "almost triangular" matrix i.e. the sum of a triangular matrix and a tridiagonal matrix.
The function below solves \(Hx=b\) where \(H\) is an upper Hessenberg matrix of rank \(n\). The right-hand side \(b\) is given as vector \(x\) and is replaced by the solution. \(H\) is given as a one dimensional array where each matrix element is indexed as \(H_{ij} = H[in+j]\).
Definition at line 29 of file hessenberg.h.
References c, s, sign2(), sq(), t, x, and y.
Referenced by solve_hessenberg().