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

Method polyTest

kernel/GBEngine/f5lists.cc:377–386  ·  view source on GitHub ↗

test if for any list element the polynomial part of the data is equal to *p

Source from the content-addressed store, hash-verified

375
376// test if for any list element the polynomial part of the data is equal to *p
377bool LNode::polyTest(poly* p) {
378 LNode* temp = new LNode(this);
379 while(NULL != temp) {
380 if(pComparePolys(temp->getPoly(),*p)) {
381 return 1;
382 }
383 temp = temp->next;
384 }
385 return 0;
386}
387
388LNode* LNode::getNext(LNode* l) {
389 return l->next;

Callers

nothing calls this directly

Calls 1

getPolyMethod · 0.45

Tested by

no test coverage detected