Changeset f43a74 in git for Singular/lists.cc
- Timestamp:
- May 18, 2005, 5:59:37 PM (19 years ago)
- Branches:
- (u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
- Children:
- 42f5a8bf6b4c7bed01fc4375213acbce2abcfe04
- Parents:
- b340969c053d9f828187f38bac97b1feb96e654e
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Singular/lists.cc
rb34096 rf43a74 2 2 * Computer Algebra System SINGULAR * 3 3 ****************************************/ 4 /* $Id: lists.cc,v 1.2 6 2005-01-18 15:42:00Singular Exp $ */4 /* $Id: lists.cc,v 1.27 2005-05-18 15:59:36 Singular Exp $ */ 5 5 /* 6 6 * ABSTRACT: handling of the list type … … 82 82 return NULL; 83 83 lists l=(lists) omAllocBin(slists_bin); 84 l->Init( max(ul->nr+2,pos+1));84 l->Init(si_max(ul->nr+2,pos+1)); 85 85 int i,j; 86 86 … … 200 200 201 201 lists liMakeResolv(resolvente r, int length, int reallen, 202 int typ0, intvec ** weights )202 int typ0, intvec ** weights, int add_row_shift) 203 203 { 204 204 lists L=(lists)omAlloc0Bin(slists_bin); … … 213 213 while (r[length-1]==NULL) length--; 214 214 if (reallen<=0) reallen=pVariables; 215 reallen= max(reallen,length);215 reallen=si_max(reallen,length); 216 216 L->Init(reallen); 217 217 int i=0; … … 244 244 else 245 245 { 246 r[i]->rank= max(rank,idRankFreeModule(r[i]));246 r[i]->rank=si_max(rank,idRankFreeModule(r[i])); 247 247 } 248 248 idSkipZeroes(r[i]); … … 251 251 if ((weights!=NULL) && (weights[i]!=NULL)) 252 252 { 253 atSet((idhdl)&L->m[i],omStrDup("isHomog"),weights[i],INTVEC_CMD); 253 intvec *w=ivCopy(weights[i]); 254 w += add_row_shift; 255 atSet((idhdl)&L->m[i],omStrDup("isHomog"),w,INTVEC_CMD); 254 256 weights[i] = NULL; 255 257 }
Note: See TracChangeset
for help on using the changeset viewer.