Changeset 9e69e0 in git


Ignore:
Timestamp:
Jun 13, 2012, 8:13:30 PM (11 years ago)
Author:
Oleksandr Motsak <motsak@…>
Branches:
(u'jengelh-datetime', 'ceac47cbc86fe4a15902392bdbb9bd2ae0ea02c6')(u'spielwiese', 'a800fe4b3e9d37a38c5a10cc0ae9dfa0c15a4ee6')
Children:
f12f9afa4f10601ec91e93721efb6b1863d06be6
Parents:
9cf2201c9530f84fbd6899531bf184f72c797fc4
git-author:
Oleksandr Motsak <motsak@mathematik.uni-kl.de>2012-06-13 20:13:30+02:00
git-committer:
Oleksandr Motsak <motsak@mathematik.uni-kl.de>2014-05-07 04:41:44+02:00
Message:
better error detection in SSCompute2LeadingSyzygyTerms

TODO: Wrong 2nd terms????
File:
1 edited

Legend:

Unmodified
Added
Removed
  • Singular/LIB/schreyer.lib

    r9cf220 r9e69e0  
    10481048    }
    10491049
    1050     if( size(module(matrix(S) - matrix(SS))) > 0 )
    1051     {
    1052       "ERROR: SSCompute2LeadingSyzygyTerms: S != SS ";
    1053 
    1054       "basering: ";
    1055       DetailedPrint(basering);
     1050    if( @SYZCHECK )
     1051    {
     1052      if( size(S) > 0 and size(L) > 0 )
     1053      {
     1054        if( size(module(transpose( transpose(S) * transpose(L) ))) > 0 )
     1055        {
     1056          transpose( transpose(S) * transpose(L) );
     1057          "ERROR: transpose( transpose(S) * transpose(L) ) != 0!!!";
     1058          $
     1059        }
     1060      }
     1061    }
     1062
     1063    if(size(S) != size(SS))
     1064    {
     1065      "ERROR: SSCompute2LeadingSyzygyTerms: size(S) != size(SS)";
     1066
     1067      "basering: "; basering; //      DetailedPrint(basering);
    10561068
    10571069      "S: ";  S;
    1058       DetailedPrint(S, 2);
     1070//      DetailedPrint(S, 2);
    10591071      "SS: "; SS;
    1060       DetailedPrint(SS, 2);
    1061 
    1062       "DIFF: ";
    1063       print(matrix(S) - matrix(SS));
    1064       DetailedPrint(module(matrix(S) - matrix(SS)), 4);
     1072//      DetailedPrint(SS, 2);
    10651073      $
     1074    }   
     1075
     1076    if(size(S) > 0 && size(SS) > 0)
     1077    {
     1078      if( size(module(matrix(lead(S)) - matrix(lead(SS)))) > 0 )
     1079      {
     1080        "ERROR: SSCompute2LeadingSyzygyTerms: lead(S) != lead(SS) ";
     1081
     1082        "basering: ";  basering;
     1083//        DetailedPrint(basering);
     1084
     1085        "lead(S ): "; lead(S );
     1086//        DetailedPrint(_, 2);
     1087        "lead(SS): "; lead(SS);
     1088//        DetailedPrint(_, 2);
     1089
     1090        "DIFF: ";
     1091        print( matrix(lead(S)) - matrix(lead(SS))  );
     1092        module(matrix(lead(S)) - matrix(lead(SS)));
     1093//        DetailedPrint(_ , 4);
     1094        $
     1095      }
     1096
     1097
     1098      if( @TAILREDSYZ )
     1099      {
     1100      if( size(module(matrix(Tail(S)) - matrix(Tail(SS)))) > 0 )
     1101      {
     1102        "ERROR: SSCompute2LeadingSyzygyTerms: Tail(S) != Tail(SS) ";
     1103
     1104        "basering: ";  basering;
     1105//        DetailedPrint(basering);
     1106
     1107        "Tail(S ): "; Tail(S );
     1108//        DetailedPrint(_, 2);
     1109        "Tail(SS): "; Tail(SS);
     1110//        DetailedPrint(_, 2);
     1111
     1112        "DIFF: ";
     1113        module( matrix(Tail(S)) - matrix(Tail(SS)) );
     1114//        DetailedPrint(_, 4);
     1115        print( matrix(Tail(S)) - matrix(Tail(SS)) );
     1116        $
     1117      }
     1118      }
    10661119    }
    10671120  }
Note: See TracChangeset for help on using the changeset viewer.