Class GooseFEM::Mesh::Reorder#
-
class Reorder#
Reorder to lowest possible index, in specific order.
For example for
Reorder({iiu, iip})
after reordering:iiu = xt::range<size_t>(nnu); iip = xt::range<size_t>(nnp) + nnu;
Public Functions
-
template<class T>
inline Reorder(const std::initializer_list<T> args)# - Parameters
args – List of (DOF-)numbers.
-
template<class T>
inline T apply(const T &list) const# Apply reordering to other set.
- Parameters
list – List of (DOF-)numbers.
- Returns
Reordered list of (DOF-)numbers.
-
inline const array_type::tensor<size_t, 1> &index() const#
Get the list needed to reorder, e.g.:
dofs_reordered(i, j) = index(dofs(i, j))
- Returns
Reorder-index.
-
template<class T>