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

Method CopyD

Singular/subexpr.cc:714–743  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

712}
713
714void * sleftv::CopyD(int t)
715{
716 if (Sy_inset(FLAG_OTHER_RING,flag))
717 {
718 flag&=~Sy_bit(FLAG_OTHER_RING);
719 WerrorS("object from another ring");
720 return NULL;
721 }
722
723 if ((rtyp!=IDHDL)&&(rtyp!=ALIAS_CMD)&&(e==NULL))
724 {
725 if (iiCheckRing(t)) return NULL;
726 void *x = data;
727 if (rtyp==VNOETHER) x = (void *)pCopy((currRing->ppNoether));
728 else if ((rtyp==VMINPOLY) && nCoeff_is_algExt(currRing->cf) && (!nCoeff_is_GF(currRing->cf)))
729 {
730 const ring A = currRing->cf->extRing;
731
732 assume( A != NULL );
733 assume( A->qideal != NULL );
734
735 x=(void *)p_Copy(A->qideal->m[0], A);
736 }
737 data=NULL;
738 return x;
739 }
740 void *d=Data(); // will also do a iiCheckRing
741 if ((!errorreported) && (d!=NULL)) return s_internalCopy(t,d);
742 return NULL;
743}
744
745//void * sleftv::CopyD()
746//{

Callers 15

jjSYSTEMFunction · 0.45
jjEXTENDED_SYSTEMFunction · 0.45
newstruct_StringFunction · 0.45
jjNUMBER2CRFunction · 0.45
evRowElimFunction · 0.45
evEigenvalsFunction · 0.45
atATTRIB3Function · 0.45
jjOP_IV_IFunction · 0.45
jjOP_IM_IFunction · 0.45
jjPOWER_PFunction · 0.45
jjPLUSMINUS_GenFunction · 0.45
iparith.ccFile · 0.45

Calls 7

WerrorSFunction · 0.85
iiCheckRingFunction · 0.85
nCoeff_is_algExtFunction · 0.85
nCoeff_is_GFFunction · 0.85
p_CopyFunction · 0.85
DataClass · 0.85
s_internalCopyFunction · 0.85

Tested by

no test coverage detected