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

Function pyobject_Op3

Singular/dyn_modules/pyobject/pyobject.cc:588–598  ·  view source on GitHub ↗

blackbox support - ternary operations

Source from the content-addressed store, hash-verified

586
587/// blackbox support - ternary operations
588BOOLEAN pyobject_Op3(int op, leftv res, leftv arg1, leftv arg2, leftv arg3)
589{
590 PythonCastStatic<> lhs(arg1);
591 PythonCastDynamic rhs1(arg2);
592 PythonCastDynamic rhs2(arg3);
593
594 if (!lhs(op, rhs1, rhs2).assign_to(res))
595 return FALSE;
596
597 return blackboxDefaultOp3(op, res, arg1, arg2, arg3);
598}
599
600
601/// blackbox support - n-ary operations

Callers

nothing calls this directly

Calls 2

blackboxDefaultOp3Function · 0.85
assign_toMethod · 0.80

Tested by

no test coverage detected