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

Function p2Init

Singular/number2.h:26–27  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

24{ number2 N=(number2)omAlloc0(sizeof(snumber2)); if (c!=NULL) { N->cf=c; N->n=n_Init(i,c);} return N;}
25
26static inline poly2 p2Init(long i, ring c)
27{ poly2 N=(poly2)omAlloc0(sizeof(spoly2)); if (c!=NULL) { N->cf=c; N->n=p_ISet(i,c);} return N;}
28
29// type conversion:
30BOOLEAN jjNUMBER2CR(leftv res, leftv a, leftv b); // <any>,cring ->number2

Callers 1

idrecDataInitFunction · 0.85

Calls 2

omAlloc0Function · 0.85
p_ISetFunction · 0.85

Tested by

no test coverage detected