GooseFEM 1.4.1.dev2+g78f16df
Loading...
Searching...
No Matches
GooseFEM::Mesh::Reorder Class Reference

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

#include <GooseFEM/Mesh.h>

Public Member Functions

template<class T >
 Reorder (const std::initializer_list< T > args)
 
template<class T >
T apply (const T &list) const
 Apply reordering to other set.
 
const array_type::tensor< size_t, 1 > & index () const
 Get the list needed to reorder, e.g.:
 

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 2384 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 2392 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 2427 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 2447 of file Mesh.h.


The documentation for this class was generated from the following file: