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

Function copy_deep

Singular/ipshell.cc:3355–3372  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3353// ----------------------------------------------------------------------------
3354
3355void copy_deep( spectrum& spec, lists l )
3356{
3357 spec.mu = (int)(long)(l->m[0].Data( ));
3358 spec.pg = (int)(long)(l->m[1].Data( ));
3359 spec.n = (int)(long)(l->m[2].Data( ));
3360
3361 spec.copy_new( spec.n );
3362
3363 intvec *num = (intvec*)l->m[3].Data( );
3364 intvec *den = (intvec*)l->m[4].Data( );
3365 intvec *mul = (intvec*)l->m[5].Data( );
3366
3367 for( int i=0; i<spec.n; i++ )
3368 {
3369 spec.s[i] = (Rational)((*num)[i])/(Rational)((*den)[i]);
3370 spec.w[i] = (*mul)[i];
3371 }
3372}
3373
3374// ----------------------------------------------------------------------------
3375// singular lists constructor for spectrum

Callers 7

spectrumFromListFunction · 0.85
linearFormMethod · 0.85
npolygon.ccFile · 0.85
newtonPolygonMethod · 0.85
spectrumMethod · 0.85
operator =Method · 0.85
KMatrixMethod · 0.85

Calls 2

DataMethod · 0.45
copy_newMethod · 0.45

Tested by

no test coverage detected