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

Function lCopy

Singular/lists.cc:32–46  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

30}
31
32lists lCopy(lists L)
33{
34 lists N=(lists)omAlloc0Bin(slists_bin);
35 int n=L->nr;
36 if (n>=0)
37 N->Init(n+1);
38 else
39 N->Init();
40 for(;n>=0;n--)
41 {
42 N->m[n].Copy(&L->m[n]);
43 }
44 //Print("copy list with %d -> %d elems\n",L->nr,N->nr);
45 return N;
46}
47
48/*2
49* concat 2 lists

Callers 2

lCopy_newstructFunction · 0.85
s_internalCopyFunction · 0.85

Calls 3

omAlloc0BinFunction · 0.85
InitMethod · 0.45
CopyMethod · 0.45

Tested by

no test coverage detected