Changeset 5f4463 in git for kernel/tgb_internal.h
- Timestamp:
- Apr 11, 2011, 6:39:34 PM (12 years ago)
- Branches:
- (u'jengelh-datetime', 'ceac47cbc86fe4a15902392bdbb9bd2ae0ea02c6')(u'spielwiese', 'f875bbaccd0831e36aaed09ff6adeb3eb45aeb94')
- Children:
- 5beac5a8a177a4d4938cbc1e887bbd115a393f3a
- Parents:
- 16733868763266ec04dae72db238bced32663735
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/tgb_internal.h
r1673386 r5f4463 280 280 int pTotaldegree_full(poly p) 281 281 { 282 int r =0;282 int rr=0; 283 283 while(p) 284 284 { 285 285 int d=this->pTotaldegree(p); 286 r =si_max(r,d);286 rr=si_max(rr,d); 287 287 pIter(p); 288 288 } 289 return r ;289 return rr; 290 290 } 291 291 }; … … 378 378 int p_len; 379 379 int reducer_deg; 380 simple_reducer(poly p , int p_len,int reducer_deg, slimgb_alg*c =NULL)381 { 382 this->p=p ;383 this->reducer_deg= reducer_deg;384 assume(p _len==pLength(p));385 this->p_len=p _len;386 this->c= c;380 simple_reducer(poly pp, int pp_len,int pp_reducer_deg, slimgb_alg* pp_c =NULL) 381 { 382 this->p=pp; 383 this->reducer_deg=pp_reducer_deg; 384 assume(pp_len==pLength(pp)); 385 this->p_len=pp_len; 386 this->c=pp_c; 387 387 } 388 388 virtual void pre_reduce(red_object* r, int l, int u); … … 1503 1503 1504 1504 int ncols,nrows; 1505 ModPMatrixProxyOnArray(number_type* array, int nrows, int ncols){ 1506 this->ncols=ncols; 1507 this->nrows=nrows; 1508 rows=(number_type**) omalloc(nrows*sizeof(number_type*)); 1509 startIndices=(int*)omalloc(nrows*sizeof(int)); 1505 ModPMatrixProxyOnArray(number_type* array, int nnrows, int nncols) 1506 { 1507 this->ncols=nncols; 1508 this->nrows=nnrows; 1509 rows=(number_type**) omalloc(nnrows*sizeof(number_type*)); 1510 startIndices=(int*)omalloc(nnrows*sizeof(int)); 1510 1511 int i; 1511 for(i=0;i<n rows;i++)1512 { 1513 rows[i]=array+(i*n cols);1512 for(i=0;i<nnrows;i++) 1513 { 1514 rows[i]=array+(i*nncols); 1514 1515 updateStartIndex(i,-1); 1515 1516 }
Note: See TracChangeset
for help on using the changeset viewer.