Changeset b304ba in git


Ignore:
Timestamp:
Oct 21, 2011, 2:37:32 PM (12 years ago)
Author:
Hans Schoenemann <hannes@…>
Branches:
(u'spielwiese', '0d6b7fcd9813a1ca1ed4220cfa2b104b97a0a003')
Children:
bc4dd17ae0bd4c02957f75f188075907873f7935
Parents:
780e112edff75c0cf87a2cbc679791d1307e3f7e
Message:
fix tr. 380

git-svn-id: file:///usr/local/Singular/svn/trunk@14421 2c84dea3-7e68-4137-9b89-c4e89433aadc
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • Singular/iparith.cc

    r780e11 rb304ba  
    18141814  ideal R; matrix U;
    18151815  ideal m = idLift(vi,ui,&R, FALSE,hasFlag(v,FLAG_STD),TRUE,&U);
     1816  if (m==NULL) return TRUE;
    18161817  // now make sure that all matices have the corect size:
    18171818  matrix T = idModule2formatedMatrix(m,vl,ul);
     
    23722373static BOOLEAN jjLIFT(leftv res, leftv u, leftv v)
    23732374{
    2374   ideal m;
    23752375  BITSET save_test=test;
    23762376  int ul= IDELEMS((ideal)u->Data());
    23772377  int vl= IDELEMS((ideal)v->Data());
    2378   m = idLift((ideal)u->Data(),(ideal)v->Data(),NULL,FALSE,hasFlag(u,FLAG_STD));
     2378  ideal m = idLift((ideal)u->Data(),(ideal)v->Data(),NULL,FALSE,
     2379                   hasFlag(u,FLAG_STD));
     2380  if (m==NULL) return TRUE;
    23792381  res->data = (char *)idModule2formatedMatrix(m,ul,vl);
    23802382  test=save_test;
     
    61336135    = idLift((ideal)u->Data(),(ideal)v->Data(),NULL,FALSE,hasFlag(u,FLAG_STD),
    61346136             FALSE, (matrix *)(&(IDMATRIX((idhdl)(w->data)))));
     6137  if (m==NULL) return TRUE;
    61356138  res->data = (char *)idModule2formatedMatrix(m,ul,vl);
    61366139  test=save_test;
  • kernel/ideals.cc

    r780e11 rb304ba  
    263263#else
    264264          if (pComparePolys(id->m[i], id->m[j])) pDelete(&id->m[j]);
    265 #endif         
     265#endif
    266266        }
    267267      }
     
    365365#ifdef HAVE_RINGS
    366366          }
    367 #endif         
     367#endif
    368368        }
    369369      }
     
    443443  if (a==NULL) return -1;
    444444
    445   if (nolex) 
     445  if (nolex)
    446446  {
    447447    int r=pLmCmp(a,b);
     
    11901190
    11911191  ideal res=idElimination(h,t);
    1192   // cleanup 
     1192  // cleanup
    11931193  idDelete(&h);
    1194   res=idrMoveR(res,r,origRing);
     1194  if (res!=NULL) res=idrMoveR(res,r,origRing);
    11951195  rChangeCurrRing(origRing);
    11961196  rKill(r);
     
    19531953  {
    19541954    WerrorS("2nd module does not lie in the first");
    1955     #if 0
    1956     if (unit!=NULL)
    1957     {
    1958       i=IDELEMS(submod);
    1959       *unit=mpNew(i,i);
    1960       for (j=i;j>0;j--)
    1961       {
    1962         MATELEM(*unit,j,j)=pOne();
    1963       }
    1964     }
    1965     if (rest!=NULL)
    1966     {
    1967       *rest=idCopy(submod);
    1968     }
    1969     return idInit(1,mod->rank);
    1970     #endif
    1971     return idInit(IDELEMS(submod),submod->rank);
     1955    return NULL;
    19721956  }
    19731957  if (unit!=NULL)
     
    26262610  {
    26272611    WerrorS("cannot eliminate in a qring");
    2628     return idCopy(h1);
     2612    return NULL;
    26292613  }
    26302614  if (idIs0(h1)) return idInit(1,h1->rank);
     
    26392623      {
    26402624        WerrorS("no elimination is possible: subalgebra is not admissible");
    2641         return idCopy(h1);
     2625        return NULL;
    26422626      }
    26432627    }
     
    27812765      if (w!=NULL)
    27822766        delete w;
    2783       return idCopy(h1);
     2767      return NULL;
    27842768    }
    27852769  }
Note: See TracChangeset for help on using the changeset viewer.