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

Function semicProc3

Singular/ipshell.cc:4506–4545  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4504// ----------------------------------------------------------------------------
4505
4506BOOLEAN semicProc3 ( leftv res,leftv u,leftv v,leftv w )
4507{
4508 semicState state;
4509 BOOLEAN qh=(((int)(long)w->Data())==1);
4510
4511 // -----------------
4512 // check arguments
4513 // -----------------
4514
4515 lists l1 = (lists)u->Data( );
4516 lists l2 = (lists)v->Data( );
4517
4518 if( (state=list_is_spectrum( l1 ))!=semicOK )
4519 {
4520 WerrorS( "first argument is not a spectrum" );
4521 list_error( state );
4522 }
4523 else if( (state=list_is_spectrum( l2 ))!=semicOK )
4524 {
4525 WerrorS( "second argument is not a spectrum" );
4526 list_error( state );
4527 }
4528 else
4529 {
4530 spectrum s1= spectrumFromList( l1 );
4531 spectrum s2= spectrumFromList( l2 );
4532
4533 res->rtyp = INT_CMD;
4534 if (qh)
4535 res->data = (void*)(long)(s1.mult_spectrumh( s2 ));
4536 else
4537 res->data = (void*)(long)(s1.mult_spectrum( s2 ));
4538 }
4539
4540 // -----------------
4541 // check status
4542 // -----------------
4543
4544 return (state!=semicOK);
4545}
4546BOOLEAN semicProc ( leftv res,leftv u,leftv v )
4547{
4548 sleftv tmp;

Callers 2

jjSYSTEMFunction · 0.85
semicProcFunction · 0.85

Calls 7

list_is_spectrumFunction · 0.85
WerrorSFunction · 0.85
list_errorFunction · 0.85
spectrumFromListFunction · 0.85
mult_spectrumhMethod · 0.80
mult_spectrumMethod · 0.80
DataMethod · 0.45

Tested by

no test coverage detected