Sparse Matrix<T>.Get Reverse Cuthill Mc Kee Ordering Method
Computes a deterministic reverse Cuthill–McKee ordering.
Definition
Namespace: Numerics.NET.LinearAlgebra
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 10.9.0
C#
An owned permutation whose element k is the original index at new index k.
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 10.9.0
public Permutation GetReverseCuthillMcKeeOrdering()Return Value
PermutationAn owned permutation whose element k is the original index at new index k.
Remarks
The graph uses the union of logical off-diagonal nonzeros in the matrix and its transpose. Each component starts at the lowest-degree unvisited vertex, breaking ties by original index. Breadth-first neighbors are ordered by degree and then index; the complete traversal is reversed. Isolated vertices are included. The source is not modified.
The result can be passed directly to the ordering argument of incomplete-factor preconditioners. This bandwidth/profile heuristic does not guarantee reduced bandwidth or fill.
Exceptions
| Dimension | The matrix is not square. |
| Not | The matrix storage structure is unsupported. |