Vulpes  0.1.0
Versatile and parallel compUtational Library for high-order discontinuous Polytopal Element Simulations
Loading...
Searching...
No Matches
vulpes::dofs Namespace Reference

Namespaces

namespace  internal
namespace  boosttypes

Classes

class  DofHandler
 Compute and distribute the DoFs and sparsity pattern associated with a mesh and a certain finite element space. More...

Typedefs

template<typename T>
using Permutation = std::pair<std::vector<T>, std::vector<T>>
 A permutation is an index of permutations and their inverse.
template<typename T>
using RenumberingFunctor
 Type of a function that renumbers a CrsMap.

Functions

template<typename T>
Permutation< T > 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>
Permutation< T > 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 > 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.

Typedef Documentation

◆ Permutation

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.

◆ RenumberingFunctor

template<typename T>
using vulpes::dofs::RenumberingFunctor
Initial value:
std::function<Permutation<T>(
const datastructure::CrsMap<T, T>& sparsity_pattern, bool reversed)>
Definition crs_map.hpp:72

Type of a function that renumbers a CrsMap.

Function Documentation

◆ computeBoostCuthillMckeeOrdering()

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.

Returns
Returns a permutation of indices of the CSR matrix

◆ computeBoostKingOrdering()

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.

Returns
Returns a permutation of indices of the CSR matrix

◆ computeReverseCuthillMckeeOrdering()

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.

heavily inspired by https://docs.scipy.org/doc/scipy/reference/generated/scipy.sparse.csgraph.reverse_cuthill_mckee.html https://github.com/scipy/scipy/blob/main/scipy/sparse/csgraph/_reordering.pyx

Returns
Returns a permutation of indices of the CSR matrix