|
MTL5 -- Matrix Template Library C++ API
mtl:: -- C++20 header-only linear algebra for mixed-precision algorithm design
|
Reverse Cuthill-McKee ordering. More...
#include <rcm.hpp>
Public Member Functions | |
| template<typename Value, typename Parameters> | |
| std::vector< std::size_t > | operator() (const mat::compressed2D< Value, Parameters > &A) const |
| Compute the RCM ordering for a symmetric sparse matrix. | |
Reverse Cuthill-McKee ordering.
Callable object: given a symmetric sparse matrix, returns a permutation vector that reduces bandwidth.
|
inline |
Compute the RCM ordering for a symmetric sparse matrix.
Returns permutation p where p[new] = old.