G+Smo  24.08.0
Geometry + Simulation Modules
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
gsWeightMapperUtils.h
1 
14 #pragma once
15 
17 
18 namespace gismo {
19 
36 typedef gsEigen::PermutationMatrix<Dynamic,Dynamic,index_t> gsPermutationMatrix;
37 
38 template <class T>
39 index_t reorderMapperTarget (gsWeightMapper<T> &mapper, const std::vector<index_t>& permutation, gsPermutationMatrix* permMatrix=NULL);
40 
41 
42 
55 template <class T>
56 gsWeightMapper<T>* combineMappers (const std::vector<gsWeightMapper<T>*> &mappers, std::vector<index_t> &shifts, bool needShifting=true);
57 
58 template <class T>
59 void combineMappers (const std::vector<gsWeightMapper<T>*> &mappers, bool needShifting, std::vector<index_t> &shifts, gsWeightMapper<T>& result);
60 
61 
62 }
63 
gsEigen::PermutationMatrix< Dynamic, Dynamic, index_t > gsPermutationMatrix
reorderMapperTarget permutes the target indices of mapper according to permutation. If permutation does not contain all indices then the order of the remaining indices is preserved and the specified indices are appended to the end.
Definition: gsWeightMapperUtils.h:36
#define index_t
Definition: gsConfig.h:32
Provides declaration of gsWeightMapper class.
gsWeightMapper< T > * combineMappers(const std::vector< gsWeightMapper< T > * > &mappers, std::vector< index_t > &shifts, bool needShifting=true)
combineMappers Given a set of mappers it creates a new mapper that combines all. It can be used to co...
Definition: gsWeightMapperUtils.hpp:64