Implementation of several flavors of the Cuthill-McKee algorithm. Experimental in 1.2.x. More...
#include <iostream>
#include <fstream>
#include <string>
#include <algorithm>
#include <map>
#include <vector>
#include <deque>
#include <cmath>
Go to the source code of this file.
Data Structures | |
struct | cuthill_mckee_tag |
class | advanced_cuthill_mckee_tag |
Tag for the advanced Cuthill-McKee algorithm. More... | |
Namespaces | |
namespace | viennacl |
namespace | viennacl::detail |
Functions | |
bool | comb_inc (std::vector< int > &comb, int n) |
template<typename MatrixType > | |
void | generate_layering (MatrixType const &matrix, std::vector< std::vector< int > > &l, int s) |
bool | cuthill_mckee_comp_func (std::vector< int > const &a, std::vector< int > const &b) |
template<typename MatrixType > | |
std::vector< int > | reorder (MatrixType const &matrix, cuthill_mckee_tag) |
Function for the calculation of a node number permutation to reduce the bandwidth of an incidence matrix by the Cuthill-McKee algorithm. | |
template<typename MatrixType > | |
std::vector< int > | reorder (MatrixType const &matrix, advanced_cuthill_mckee_tag const &tag) |
Function for the calculation of a node number permutation to reduce the bandwidth of an incidence matrix by the advanced Cuthill-McKee algorithm. |
Implementation of several flavors of the Cuthill-McKee algorithm. Experimental in 1.2.x.
Contributed by Philipp Grabenweger, interface adjustments by Karl Rupp.