Changeset df290e in git
- Timestamp:
- Nov 15, 2018, 5:10:08 PM (5 years ago)
- Branches:
- (u'fieker-DuVal', '117eb8c30fc9e991c4decca4832b1d19036c4c65')(u'spielwiese', 'd08f5f0bb3329b8ca19f23b74cb1473686415c3a')
- Children:
- 1bbd47fd39d8d0bee713b13b974dba118d689cd3
- Parents:
- bc15c51191c62dfcdbced9dd8a75b9ea898fff6248401d8de4609213813d6032d00fcf9519b8eeed
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
Singular/LIB/fpaprops.lib
rbc15c5 rdf290e 777 777 if (#[1] != 0) { 778 778 list ret = UG; 779 ret[2] = ivL2lpI(SW); // the vertices779 ret[2] = SW; // the vertices 780 780 return (ret); 781 781 } -
Singular/LIB/freegb.lib
rbc15c5 rdf290e 3262 3262 } 3263 3263 3264 static 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 3275 static 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 3264 3288 static proc checkAssumptions(poly p, ideal G) 3265 3289 " … … 3607 3631 EXAMPLE: example iv2lpList; shows examples 3608 3632 " 3609 {checkAssumptions (0,L);3633 {checkAssumptionsLPIV(0,L); 3610 3634 ideal G; 3611 3635 int i; … … 3637 3661 " 3638 3662 {list L = M; 3639 checkAssumptions (0,L);3663 checkAssumptionsLPIV(0,L); 3640 3664 kill L; 3641 3665 ideal G; poly p; … … 3672 3696 int i,j,k; 3673 3697 list M; 3674 checkAssumptions (0,M);3698 checkAssumptionsLPIV(0,M); 3675 3699 for (i = 1; i <= size(G); i++) {M[i] = lp2iv(G[i]);} 3676 3700 return(M); … … 3735 3759 {G = normalize(lead(G)); 3736 3760 intvec I; list L; 3737 checkAssumptions (0,G);3761 checkAssumptionsLPIV(0,L); 3738 3762 int i,md; 3739 3763 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.