MCPcopy Create free account
hub / github.com/Singular/Singular / remap

Method remap

gfanlib/gfanlib_symmetriccomplex.cpp:55–77  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

53
54
55void SymmetricComplex::Cone::remap(SymmetricComplex &complex)
56{
57 ZMatrix const &vertices=complex.getVertices();
58 ZVector sum(vertices.getWidth());
59 for(unsigned i=0;i<indices.size();i++)
60 sum+=vertices[indices[i]];
61
62 unsigned n=sum.size();
63 Permutation const &bestPermutation=sortKeyPermutation;
64
65 assert(bestPermutation.size()==n);
66
67 IntVector indicesNew(indices.size());
68 int I=0;
69 for(unsigned i=0;i<indices.size();i++,I++)
70 {
71 ZVector ny=bestPermutation.apply(complex.vertices[indices[i]]);
72 std::map<ZVector,int>::const_iterator it=complex.indexMap.find(ny);
73 assert(it!=complex.indexMap.end());
74 indicesNew[I]=it->second;
75 }
76 indices=indicesNew;
77}
78
79
80std::set<int> SymmetricComplex::Cone::indexSet()const

Callers 3

toSymmetricComplexMethod · 0.80
toStringMethod · 0.80
toStringMethod · 0.80

Calls 7

assertFunction · 0.85
getWidthMethod · 0.80
sizeMethod · 0.45
applyMethod · 0.45
findMethod · 0.45
endMethod · 0.45
beginMethod · 0.45

Tested by

no test coverage detected