Changeset 92550d in git


Ignore:
Timestamp:
May 20, 2014, 5:18:40 PM (9 years ago)
Author:
Hans Schoenemann <hannes@…>
Branches:
(u'spielwiese', '8e0ad00ce244dfd0756200662572aef8402f13d5')
Children:
a770fe2fceb17640c0d38e02178754f465f6ef5b
Parents:
984ff3b24d0cfc0f0c40172a5ef29ced17fd6741
Message:
fix: handle empty char. series in primdec.lib
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • Singular/LIB/primdec.lib

    r984ff3 r92550d  
    40064006  }
    40074007  // remaining case: re[n+1] is trivial
    4008   // either n is at least number of variables or 
     4008  // either n is at least number of variables or
    40094009  // resolution happens to be shorter
    40104010  ideal ann=Ann(transpose(re[n]));
     
    41524152  matrix m=char_series(PS);  // We compute an irreducible
    41534153                             // characteristic series
     4154  if ((nrows(m)==1)
     4155  && (ncols(m)==1)
     4156  && (m[1,1]==1)) // in case of an empty series: min_ass_prim_charsets1
     4157  {
     4158    return min_ass_prim_charsets1(PS);
     4159  }
    41544160  int i,j,k;
    41554161  list PSI;
     
    42514257  matrix m=char_series(PS);  // We compute an irreducible
    42524258                             // characteristic series
     4259                             // this series may be empty (1x1: 1)
    42534260  int i,j,k;
     4261  while ((nrows(m)==1)
     4262  && (ncols(m)==1)
     4263  && (m[1,1]==1)) // in case of an empty series: permute the variables
     4264  {
     4265    n=string(var(nvars(oldring)));
     4266    for(i=1;i<nvars(oldring);i++) { n=n+","+string(var(i)); }
     4267    kill r;
     4268    execute("ring r=("+charstr(oldring)+"),("+n+"),dp;");
     4269    ideal PS=imap(oldring,PS);
     4270    matrix m=char_series(PS);
     4271  }
    42544272  ideal I;
    42554273  list PSI;
  • Tst/Short/bug_charseries.res.gz.uu

    r984ff3 r92550d  
    1 begin 644 bug_charseries.res.gz
    2 M'XL("%?:;%,``V)U9U]C:&%R<V5R:65S+G)E<P#5E%%OFS`0Q]_S*4[1'@A0
     1begin 640 bug_charseries.res.gz
     2M'XL(""-R>U,``V)U9U]C:&%R<V5R:65S+G)E<P#5E%%OFS`0Q]_S*4[1'@A0
    33MBFU(2".8-&T/E:9-2BI54]5$)#&I-4:H(=K*I]\%!VP13=IK><'<_W>'??>'
    44MU</G^V\`0!+X>O\)QG55>[G8CA>CU46A"6!P(PI16Y/%Z'R')('MZ;#9O:2R
  • Tst/Short/bug_charseries.stat

    r984ff3 r92550d  
    1 1 >> tst_memory_0 :: 1399642710:4.0.0, 32 bit:4.0.0:i686-Linux:mamawutz:236720
    2 1 >> tst_memory_1 :: 1399642710:4.0.0, 32 bit:4.0.0:i686-Linux:mamawutz:2338816
    3 1 >> tst_memory_2 :: 1399642710:4.0.0, 32 bit:4.0.0:i686-Linux:mamawutz:2375480
    4 1 >> tst_timer_1 :: 1399642710:4.0.0, 32 bit:4.0.0:i686-Linux:mamawutz:12
     11 >> tst_memory_0 :: 1400599075:4.0.0, 64 bit:4.0.0:x86_64-Linux:nepomuck:272136
     21 >> tst_memory_1 :: 1400599075:4.0.0, 64 bit:4.0.0:x86_64-Linux:nepomuck:2342912
     31 >> tst_memory_2 :: 1400599075:4.0.0, 64 bit:4.0.0:x86_64-Linux:nepomuck:2375984
     41 >> tst_timer_1 :: 1400599075:4.0.0, 64 bit:4.0.0:x86_64-Linux:nepomuck:3
  • factory/cf_gcd.cc

    r984ff3 r92550d  
    958958content ( const CanonicalForm & f, const Variable & x )
    959959{
     960    if (f.inBaseDomain()) return f;
    960961    ASSERT( x.level() > 0, "cannot calculate content with respect to algebraic variable" );
    961962    Variable y = f.mvar();
Note: See TracChangeset for help on using the changeset viewer.