Reorder to lowest possible index, in specific order.
More...
#include <include/GooseFEM/Mesh.h>
|
template<class T > |
| Reorder (const std::initializer_list< T > args) |
|
template<class T > |
T | apply (const T &list) const |
| Apply reordering to other set. More...
|
|
const array_type::tensor< size_t, 1 > & | index () const |
| Get the list needed to reorder, e.g.: More...
|
|
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;
Definition at line 2387 of file Mesh.h.
◆ Reorder()
template<class T >
GooseFEM::Mesh::Reorder::Reorder |
( |
const std::initializer_list< T > |
args | ) |
|
|
inline |
- Parameters
-
args | List of (DOF-)numbers. |
Definition at line 2395 of file Mesh.h.
◆ apply()
template<class T >
T GooseFEM::Mesh::Reorder::apply |
( |
const T & |
list | ) |
const |
|
inline |
Apply reordering to other set.
- Parameters
-
list | List of (DOF-)numbers. |
- Returns
- Reordered list of (DOF-)numbers.
Definition at line 2430 of file Mesh.h.
◆ index()
Get the list needed to reorder, e.g.:
dofs_reordered(i, j) = index(dofs(i, j))
- Returns
- Reorder-index.
Definition at line 2450 of file Mesh.h.
The documentation for this class was generated from the following file: