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

Function n2Init

Singular/number2.h:23–24  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

21};
22
23static inline number2 n2Init(long i, coeffs c)
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;}

Callers 2

idrecDataInitFunction · 0.85
jiA_NUMBER2_IFunction · 0.85

Calls 2

omAlloc0Function · 0.85
n_InitFunction · 0.85

Tested by

no test coverage detected