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

Function append

factory/facAlgFuncUtil.cc:31–49  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

29#include "cf_iter.h"
30
31CFFList
32append (const CFFList & Inputlist, const CFFactor & TheFactor)
33{
34 CFFList Outputlist;
35 CFFactor copy;
36 CFFListIterator i;
37 int exp=0;
38
39 for (i= Inputlist; i.hasItem() ; i++)
40 {
41 copy= i.getItem();
42 if (copy.factor() == TheFactor.factor())
43 exp += copy.exp();
44 else
45 Outputlist.append(copy);
46 }
47 Outputlist.append (CFFactor (TheFactor.factor(), exp + TheFactor.exp()));
48 return Outputlist;
49}
50
51CFFList
52merge (const CFFList & Inputlist1, const CFFList & Inputlist2)

Callers 7

facAlgFuncFunction · 0.70
multiFactorizeFunction · 0.70
mergeFunction · 0.70
biFactorizeFunction · 0.70
biFactorizeFunction · 0.70
multiFactorizeFunction · 0.70
insertMethod · 0.50

Calls 4

hasItemMethod · 0.80
factorMethod · 0.45
expMethod · 0.45
appendMethod · 0.45

Tested by

no test coverage detected