Ignore:
Timestamp:
Mar 24, 2015, 5:08:27 PM (9 years ago)
Author:
Hans Schoenemann <hannes@…>
Branches:
(u'spielwiese', '6e5adcba05493683b94648c659a729c189812c77')
Children:
9b240710d9ea423c1b2f46292d3623feeb39a4b3
Parents:
a94825bccfd22b15bed688d4960beff0c826c021853606b08213635f36b832787aa660894c0a3cce
Message:
Merge pull request #709 from YueRen/annoyingStdWarning

chg: ommit calling assumeStdFlag if ideal or module is principal and current ring is quotient free
File:
1 edited

Legend:

Unmodified
Added
Removed
  • Singular/dyn_modules/singmathic/singmathic.cc

    r853606 r4d56fe  
    464464}
    465465
    466 BOOLEAN setRingGlobal(leftv result, leftv arg) {
    467   currRing->OrdSgn = 1;
    468   result->rtyp=NONE;
    469   return FALSE;
    470 }
    471 
    472466BOOLEAN mathicgb(leftv result, leftv arg)
    473467{
    474468  result->rtyp=NONE;
    475469
    476   if (arg == NULL || arg->next != NULL || arg->Typ() != IDEAL_CMD) {
    477     WerrorS("Syntax: mathicgb(<ideal>)");
     470  if (arg == NULL || arg->next != NULL ||
     471  ((arg->Typ() != IDEAL_CMD) &&(arg->Typ() != MODUL_CMD))){
     472    WerrorS("Syntax: mathicgb(<ideal>/<module>)");
    478473    return TRUE;
    479474  }
     
    518513  mgb::computeGroebnerBasis(toMathic, fromMathic);
    519514
    520   result->rtyp=IDEAL_CMD;
     515  result->rtyp = arg->Typ();
    521516  result->data = fromMathic.takeIdeal();
    522517  return FALSE;
     
    542537    prOrderX
    543538  );
    544   psModulFunctions->iiAddCproc(
    545     (currPack->libname ? currPack->libname : ""),
    546     "mathicgb_setRingGlobal",
    547     FALSE,
    548     setRingGlobal
    549   );
    550539  return MAX_TOK;
    551540}
Note: See TracChangeset for help on using the changeset viewer.