Vulpes  0.1.0
Versatile and parallel compUtational Library for high-order discontinuous Polytopal Element Simulations
Loading...
Searching...
No Matches
numbering.hpp File Reference
#include <algorithm>
#include <cassert>
#include <numeric>
#include <utility>
#include <vector>
#include <boost/graph/adjacency_list.hpp>
#include <boost/graph/cuthill_mckee_ordering.hpp>
#include <boost/graph/graph_utility.hpp>
#include <boost/graph/king_ordering.hpp>
#include "vulpes/datastructure/crs_map.hpp"
Include dependency graph for numbering.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  vulpes
namespace  vulpes::dofs
namespace  vulpes::dofs::internal
namespace  vulpes::dofs::boosttypes

Typedefs

template<typename T>
using vulpes::dofs::Permutation = std::pair<std::vector<T>, std::vector<T>>
 A permutation is an index of permutations and their inverse.
template<typename T>
using vulpes::dofs::RenumberingFunctor
 Type of a function that renumbers a CrsMap.
using vulpes::dofs::boosttypes::Graph
using vulpes::dofs::boosttypes::GraphDegree = boost::property_map<Graph, boost::vertex_degree_t>::type
using vulpes::dofs::boosttypes::GraphIndex = boost::property_map<Graph, boost::vertex_index_t>::type
using vulpes::dofs::boosttypes::Vertex = boost::graph_traits<Graph>::vertex_descriptor
using vulpes::dofs::boosttypes::size_type = boost::graph_traits<Graph>::vertices_size_type
using vulpes::dofs::boosttypes::Pair = std::pair<size_type, size_type>

Functions

template<typename T>
std::vector< T > vulpes::dofs::internal::nodeDegrees (const std::vector< T > &ind, const std::vector< T > &ptr, T num_rows)
 Find the degree of each node (matrix row) in a graph represented by a sparse CSR or CSC matrix.
template<typename T>
Permutation< T > vulpes::dofs::computeReverseCuthillMckeeOrdering (const datastructure::CrsMap< T, T > &sparsity_pattern, bool reversed)
 Returns the permutation array that orders a sparse CSR matrix in Reverse-Cuthill McKee ordering.
template<typename T>
void vulpes::dofs::internal::createGraph (const datastructure::CrsMap< T, T > &sparsity_pattern, boosttypes::Graph &graph, boosttypes::GraphDegree &graph_degree)
template<typename T>
Permutation< T > vulpes::dofs::computeBoostKingOrdering (const datastructure::CrsMap< T, T > &sparsity_pattern, bool reversed_numbering)
 Returns the permutation array that orders a sparse CSR matrix in King ordering as implemented by boost.
template<typename T>
Permutation< T > vulpes::dofs::computeBoostCuthillMckeeOrdering (const datastructure::CrsMap< T, T > &sparsity_pattern, bool reversed_numbering)
 Returns the permutation array that orders a sparse CSR matrix in Reverse-Cuthill McKee ordering as implemented by boost.