G+Smo  25.01.0
Geometry + Simulation Modules
 
Loading...
Searching...
No Matches
gsWeightMapperUtils.h
1
14#pragma once
15
17
18namespace gismo {
19
36typedef gsEigen::PermutationMatrix<Dynamic,Dynamic,index_t> gsPermutationMatrix;
37
38template <class T>
39index_t reorderMapperTarget (gsWeightMapper<T> &mapper, const std::vector<index_t>& permutation, gsPermutationMatrix* permMatrix=NULL);
40
41
42
55template <class T>
56gsWeightMapper<T>* combineMappers (const std::vector<gsWeightMapper<T>*> &mappers, std::vector<index_t> &shifts, bool needShifting=true);
57
58template <class T>
59void combineMappers (const std::vector<gsWeightMapper<T>*> &mappers, bool needShifting, std::vector<index_t> &shifts, gsWeightMapper<T>& result);
60
61
62}
63
#define index_t
Definition gsConfig.h:32
Provides declaration of gsWeightMapper class.
The G+Smo namespace, containing all definitions for the library.
gsEigen::PermutationMatrix< Dynamic, Dynamic, index_t > gsPermutationMatrix
reorderMapperTarget permutes the target indices of mapper according to permutation....
Definition gsWeightMapperUtils.h:36
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