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

Function p_String0Short

libpolys/polys/polys0.cc:184–200  ·  view source on GitHub ↗

if possible print p in a short way...

Source from the content-addressed store, hash-verified

182
183/// if possible print p in a short way...
184void p_String0Short(const poly p, ring lmRing, ring tailRing)
185{
186 // NOTE: the following (non-thread-safe!) UGLYNESS
187 // (changing naRing->ShortOut for a while) is due to Hans!
188 // Just think of other ring using the VERY SAME naRing and possible
189 // side-effects...
190 const BOOLEAN bLMShortOut = rShortOut(lmRing);
191 const BOOLEAN bTAILShortOut = rShortOut(tailRing);
192
193 lmRing->ShortOut = rCanShortOut(lmRing);
194 tailRing->ShortOut = rCanShortOut(tailRing);
195
196 p_String0(p, lmRing, tailRing);
197
198 lmRing->ShortOut = bLMShortOut;
199 tailRing->ShortOut = bTAILShortOut;
200}
201
202/// print p in a long way...
203void p_String0Long(const poly p, ring lmRing, ring tailRing)

Callers 2

naWriteShortFunction · 0.85
ntWriteShortFunction · 0.85

Calls 3

rShortOutFunction · 0.85
rCanShortOutFunction · 0.85
p_String0Function · 0.70

Tested by

no test coverage detected