![]() |
Hex
2.2
Hydrogen-electron collision solver
|

Functions | |
| template<class IdxT > | |
| NumberArray< IdxT > | cuthill_mckee (NumberArray< IdxT > const &P, NumberArray< IdxT > const &I) |
| Compute the Cuthill-McKee ordering. More... | |
| NumberArray<IdxT> cuthill_mckee | ( | NumberArray< IdxT > const & | P, |
| NumberArray< IdxT > const & | I | ||
| ) |
Returns a row/column permutation array that will minimize the bandwidth of a symmetric matrix using the Cuthill-McKee algorithm. The matrix structure is given using the CSR index arrays (row pointers and column indices). Only upper triangle positions are considered.
The algorithm works as follows:
1.8.13