Changeset 74afe1f in git for Singular/LIB/schreyer.lib


Ignore:
Timestamp:
May 23, 2012, 8:26:06 PM (12 years ago)
Author:
Oleksandr Motsak <motsak@…>
Branches:
(u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
Children:
8e650e4e942e4e3510a0d6fddf77ac0f30d32fb5
Parents:
5020a60f5779ffc1406febfaaefb86db176ddc13
git-author:
Oleksandr Motsak <motsak@mathematik.uni-kl.de>2012-05-23 20:26:06+02:00
git-committer:
Oleksandr Motsak <motsak@mathematik.uni-kl.de>2014-05-07 04:41:43+02:00
Message:
moved 'Compute2LeadingSyzygyTerms' into the dyn.mod.

TODO/TEST: interred & tailred
File:
1 edited

Legend:

Unmodified
Added
Removed
  • Singular/LIB/schreyer.lib

    r5020a6 r74afe1f  
    703703 
    704704//  attrib(S, "InducionStart", @RANK);
    705   attrib(S, "LEAD2SYZ", 0);
     705  attrib(S, "LEAD2SYZ", 1);
    706706  attrib(S, "TAILREDSYZ", 1);
    707707  attrib(S, "DEBUG", @DEBUG);
     
    857857
    858858/// Compute Syz(L), where L is a monomial (leading) module
    859 proc SSCompute2LeadingSyzygyTerms(def L, int @TAILREDSYZ)
     859proc SSCompute2LeadingSyzygyTerms(def L)
    860860{
    861861  if( typeof( attrib(basering, "DEBUG") ) == "int" )
     
    874874    int @SYZCHECK = @DEBUG;
    875875  }
     876
     877  int @TAILREDSYZ = 1;
     878  if( typeof( attrib(basering, "TAILREDSYZ") ) == "int" )
     879  {
     880    @TAILREDSYZ = attrib(basering, "TAILREDSYZ");
     881  }
     882 
    876883 
    877884  if( @DEBUG )
     
    879886    "SSCompute2LeadingSyzygyTerms::Input: ";
    880887    L;
    881     "@TAILREDSYZ: ", @TAILREDSYZ;
    882888  }
    883889
     
    956962      }
    957963    }
    958   }
     964   
     965    module SS = Compute2LeadingSyzygyTerms(L);
     966
     967    "S: ";  DetailedPrint(S);
     968    "SS: "; DetailedPrint(SS);
     969   
     970    if( size(module(matrix(S) - matrix(SS))) > 0 )
     971    {
     972      "ERROR: S != SS ";
     973
     974      "basering: ";
     975      DetailedPrint(basering);
     976
     977      "S: ";  S;
     978      DetailedPrint(S, 2);
     979      "SS: "; SS;
     980      DetailedPrint(SS, 2);
     981
     982      "DIFF: ";
     983      print(matrix(S) - matrix(SS));
     984      DetailedPrint(module(matrix(S) - matrix(SS)), 4);
     985      $
     986    }
     987   
     988  } 
    959989
    960990  module S2 = Tail(S);
     
    11461176    def a2; int r2; poly aa2; 
    11471177    module LL, LL2;
    1148     (LL, LL2) = SSCompute2LeadingSyzygyTerms(L, @TAILREDSYZ); // ++
     1178    (LL, LL2) = SSCompute2LeadingSyzygyTerms(L); // ++
    11491179  } else
    11501180  {
     
    15621592      exportto(Schreyer, Syzextra::Tail);
    15631593      exportto(Schreyer, Syzextra::ComputeLeadingSyzygyTerms);     
     1594      exportto(Schreyer, Syzextra::Compute2LeadingSyzygyTerms);
    15641595      exportto(Schreyer, Syzextra::Sort_c_ds);
    15651596    }
     
    16051636      exportto(Schreyer, Syzextra_g::Tail);
    16061637      exportto(Schreyer, Syzextra_g::ComputeLeadingSyzygyTerms);
     1638      exportto(Schreyer, Syzextra_g::Compute2LeadingSyzygyTerms);
    16071639      exportto(Schreyer, Syzextra_g::Sort_c_ds);
    16081640     
Note: See TracChangeset for help on using the changeset viewer.