Changeset df290e in git


Ignore:
Timestamp:
Nov 15, 2018, 5:10:08 PM (5 years ago)
Author:
Hans Schoenemann <hannes@…>
Branches:
(u'fieker-DuVal', '117eb8c30fc9e991c4decca4832b1d19036c4c65')(u'spielwiese', 'd08f5f0bb3329b8ca19f23b74cb1473686415c3a')
Children:
1bbd47fd39d8d0bee713b13b974dba118d689cd3
Parents:
bc15c51191c62dfcdbced9dd8a75b9ea898fff6248401d8de4609213813d6032d00fcf9519b8eeed
Message:
Merge branch 'spielwiese' of github.com:Singular/Sources into spielwiese
Files:
7 edited

Legend:

Unmodified
Added
Removed
  • Singular/LIB/fpaprops.lib

    rbc15c5 rdf290e  
    777777      if (#[1] != 0) {
    778778        list ret = UG;
    779         ret[2] = ivL2lpI(SW); // the vertices
     779        ret[2] = SW; // the vertices
    780780        return (ret);
    781781      }
  • Singular/LIB/freegb.lib

    rbc15c5 rdf290e  
    32623262}
    32633263
     3264static proc entryViolation(intmat M, int n)
     3265"PURPOSE:checks, if all entries in M are variable-related
     3266"
     3267{int i,j;
     3268  for (i = 1; i <= nrows(M); i++)
     3269  {for (j = 1; j <= ncols(M); j++)
     3270    {if(!((1<=M[i,j])&&(M[i,j]<=n))) {return(1);}}
     3271  }
     3272  return(0);
     3273}
     3274
     3275static proc checkAssumptionsLPIV(int d, list L)
     3276"PURPOSE: Checks, if all the Assumptions are holding
     3277"
     3278{if (attrib(basering,"isLetterplaceRing")==0) {ERROR("Basering is not a Letterplace ring!");}
     3279  if (d > attrib(basering,"uptodeg")) {ERROR("Specified degree bound exceeds ring parameter!");}
     3280  int i;
     3281  for (i = 1; i <= size(L); i++)
     3282  {if (entryViolation(L[i], attrib(basering,"isLetterplaceRing")))
     3283    {ERROR("Not allowed monomial/intvec found!");}
     3284  }
     3285  return();
     3286}
     3287
    32643288static proc checkAssumptions(poly p, ideal G)
    32653289"
     
    36073631EXAMPLE: example iv2lpList; shows examples
    36083632"
    3609 {checkAssumptions(0,L);
     3633{checkAssumptionsLPIV(0,L);
    36103634  ideal G;
    36113635  int i;
     
    36373661"
    36383662{list L = M;
    3639   checkAssumptions(0,L);
     3663  checkAssumptionsLPIV(0,L);
    36403664  kill L;
    36413665  ideal G; poly p;
     
    36723696  int i,j,k;
    36733697  list M;
    3674   checkAssumptions(0,M);
     3698  checkAssumptionsLPIV(0,M);
    36753699  for (i = 1; i <= size(G); i++) {M[i] = lp2iv(G[i]);}
    36763700  return(M);
     
    37353759{G = normalize(lead(G));
    37363760  intvec I; list L;
    3737   checkAssumptions(0,G);
     3761  checkAssumptionsLPIV(0,L);
    37383762  int i,md;
    37393763  for (i = 1; i <= size(G); i++) { if (md <= deg(G[i])) {md = deg(G[i]);}}
Note: See TracChangeset for help on using the changeset viewer.