FrictionQPotFEM 0.23.3
Loading...
Searching...
No Matches
GooseFEM::Mesh::Reorder Class Reference

Reorder to lowest possible index, in specific order. More...

#include <include/GooseFEM/Mesh.h>

Public Member Functions

template<class T >
 Reorder (const std::initializer_list< T > args)
 
template<class 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...
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ Reorder()

template<class T >
GooseFEM::Mesh::Reorder::Reorder ( const std::initializer_list< T >  args)
inline
Parameters
argsList of (DOF-)numbers.

Definition at line 2395 of file Mesh.h.

Member Function Documentation

◆ apply()

template<class T >
T GooseFEM::Mesh::Reorder::apply ( const T &  list) const
inline

Apply reordering to other set.

Parameters
listList of (DOF-)numbers.
Returns
Reordered list of (DOF-)numbers.

Definition at line 2430 of file Mesh.h.

◆ index()

const array_type::tensor< size_t, 1 > & GooseFEM::Mesh::Reorder::index ( ) const
inline

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: