Changeset 599813 in git
- Timestamp:
- May 23, 2012, 5:42:26 PM (11 years ago)
- Branches:
- (u'jengelh-datetime', 'ceac47cbc86fe4a15902392bdbb9bd2ae0ea02c6')(u'spielwiese', 'a800fe4b3e9d37a38c5a10cc0ae9dfa0c15a4ee6')
- Children:
- 70a95295f71d2f0c4c3433b152aef7a25b43e520
- Parents:
- a28cb4f3357225d7f8bb8d68a4aa0b0be3ccdd41
- git-author:
- Oleksandr Motsak <motsak@mathematik.uni-kl.de>2012-05-23 17:42:26+02:00
- git-committer:
- Oleksandr Motsak <motsak@mathematik.uni-kl.de>2012-05-23 20:33:48+02:00
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
Singular/attrib.cc
ra28cb4f r599813 128 128 } 129 129 130 void * atGet(idhdl root,const char * name, int t )130 void * atGet(idhdl root,const char * name, int t, void *defaultReturnValue) 131 131 { 132 132 attr temp = root->attribute->get(name); … … 134 134 return temp->data; 135 135 else 136 return NULL;136 return defaultReturnValue; 137 137 } 138 138 -
Singular/attrib.h
ra28cb4f r599813 34 34 void * atGet(idhdl root,const char * name); 35 35 void * atGet(leftv root,const char * name); 36 void * atGet(idhdl root,const char * name, int t );36 void * atGet(idhdl root,const char * name, int t, void *defaultReturnValue = NULL); 37 37 void * atGet(leftv root,const char * name, int t); 38 38 void atSet(idhdl root,const char * name,void * data,int typ); -
libpolys/polys/monomials/p_polys.cc
ra28cb4f r599813 148 148 if ((c > 0) && (c <= len_gen)) 149 149 { 150 const int * const wm = o->data.am.weights_m;151 assume( w m[0] == len_gen );152 ord += w m[c];150 assume( w == o->data.am.weights_m ); 151 assume( w[0] == len_gen ); 152 ord += w[c]; 153 153 } 154 154 -
libpolys/polys/monomials/p_polys.h
ra28cb4f r599813 48 48 // coeff 49 49 // #define pGetCoeff(p) ((p)->coef) 50 /// return an alias to the leading coefficient of p 51 /// assumes that p != NULL 52 /// NOTE: not copy 50 53 static inline number& pGetCoeff(poly p) 51 54 { -
libpolys/polys/monomials/ring.cc
ra28cb4f r599813 4033 4033 Print("VarL_Size:%d\n",r->VarL_Size); 4034 4034 Print("bitmask=0x%lx (expbound=%ld) \n",r->bitmask, r->bitmask); 4035 Print("divmask=%lx\n", r->divmask); 4035 4036 Print("BitsPerExp=%d ExpPerLong=%d MinExpPerLong=%d at L[%d]\n", r->BitsPerExp, r->ExpPerLong, r->MinExpPerLong, r->VarL_Offset[0]); 4036 PrintS("varoffset:\n"); 4037 4038 Print("VarL_LowIndex: %d\n", r->VarL_LowIndex); 4039 PrintS("VarL_Offset:\n"); 4040 if (r->VarL_Offset==NULL) PrintS(" NULL"); 4041 else 4042 for(j = 0; j < r->VarL_Size; j++) 4043 Print(" VarL_Offset[%d]: %d ", j, r->VarL_Offset[j]); 4044 PrintLn(); 4045 4046 4047 PrintS("VarOffset:\n"); 4037 4048 if (r->VarOffset==NULL) PrintS(" NULL\n"); 4038 4049 else … … 4040 4051 Print(" v%d at e-pos %d, bit %d\n", 4041 4052 j,r->VarOffset[j] & 0xffffff, r->VarOffset[j] >>24); 4042 Print("divmask=%lx\n", r->divmask);4043 4053 PrintS("ordsgn:\n"); 4044 4054 for(j=0;j<r->CmpL_Size;j++) … … 4164 4174 } 4165 4175 Print("LexOrder:%d, MixedOrder:%d\n",r->LexOrder, r->MixedOrder); 4176 4177 Print("NegWeightL_Size: %d, NegWeightL_Offset: ", r->NegWeightL_Size); 4178 if (r->NegWeightL_Offset==NULL) PrintS(" NULL"); 4179 else 4180 for(j = 0; j < r->NegWeightL_Size; j++) 4181 Print(" [%d]: %d ", j, r->NegWeightL_Offset[j]); 4182 PrintLn(); 4166 4183 4167 4184 // p_Procs stuff -
libpolys/polys/simpleideals.cc
ra28cb4f r599813 434 434 #endif 435 435 436 /*3 437 * for idSort: compare a and b revlex inclusive module comp. 438 */ 436 ///3 for idSort: compare a and b revlex inclusive module comp. 439 437 static int p_Comp_RevLex(poly a, poly b,BOOLEAN nolex, const ring R) 440 438 { … … 469 467 } 470 468 471 /*2 472 *sorts the ideal w.r.t. the actual ringordering 473 *uses lex-ordering when nolex = FALSE 474 */ 475 intvec *id_Sort(ideal id,BOOLEAN nolex, const ring r) 469 // sorts the ideal w.r.t. the actual ringordering 470 // uses lex-ordering when nolex = FALSE 471 intvec *id_Sort(const ideal id, const BOOLEAN nolex, const ring r) 476 472 { 477 473 intvec * result = new intvec(IDELEMS(id)); -
libpolys/polys/simpleideals.h
ra28cb4f r599813 101 101 void id_DelDiv(ideal id, const ring r); 102 102 BOOLEAN id_IsConstant(ideal id, const ring r); 103 intvec *id_Sort(ideal id,BOOLEAN nolex, const ring r); 103 104 /// sorts the ideal w.r.t. the actual ringordering 105 /// uses lex-ordering when nolex = FALSE 106 intvec *id_Sort(const ideal id, const BOOLEAN nolex, const ring r); 107 104 108 ideal id_Transp(ideal a, const ring rRing); 105 109 void id_Compactify(ideal id, const ring r);
Note: See TracChangeset
for help on using the changeset viewer.