Changeset 359d86d in git for kernel/kpolys.cc
- Timestamp:
- Jul 20, 2011, 6:22:55 PM (13 years ago)
- Branches:
- (u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
- Children:
- eaae7da539e9a22d6276d70ef09c436adadfeaba
- Parents:
- f69c6c699905fd079f239622d07125dfb15c8b09
- git-author:
- mlee <martinlee84@web.de>2011-07-20 18:22:55+02:00
- git-committer:
- Mohamed Barakat <mohamed.barakat@rwth-aachen.de>2011-11-09 12:52:44+01:00
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/kpolys.cc
rf69c6c r359d86d 115 115 } 116 116 #endif 117 /*2 118 * returns the length of a (numbers of monomials) 119 * respect syzComp 120 */ 121 poly p_Last(poly a, int &l, const ring r) 122 { 123 if (a == NULL) 124 { 125 l = 0; 126 return NULL; 127 } 128 l = 1; 129 if (! rIsSyzIndexRing(r)) 130 { 131 while (pNext(a)!=NULL) 132 { 133 pIter(a); 134 l++; 135 } 136 } 137 else 138 { 139 int curr_limit = rGetCurrSyzLimit(r); 140 poly pp = a; 141 while ((a=pNext(a))!=NULL) 142 { 143 if (p_GetComp(a,r)<=curr_limit/*syzComp*/) 144 l++; 145 else break; 146 pp = a; 147 } 148 a=pp; 149 } 150 return a; 151 } 117
Note: See TracChangeset
for help on using the changeset viewer.