Changeset 194c2e7 in git for IntegerProgramming/ideal_stuff.cc
- Timestamp:
- Feb 9, 2010, 6:50:36 PM (14 years ago)
- Branches:
- (u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
- Children:
- 6c939eebfd221f2512b1e27d158d1b5457206987
- Parents:
- a477f80136c773f8acffd73512f53bf88a7c6fe8
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
IntegerProgramming/ideal_stuff.cc
ra477f80 r194c2e7 65 65 66 66 // elimination 67 for( short i=0;i<Number_of_Lists;i++)67 for(int i=0;i<Number_of_Lists;i++) 68 68 { 69 69 iter.set_to_list(generators[i]); … … 125 125 list_iterator iter; 126 126 127 short last_weighted_variable=w.number_of_weighted_variables()-1;127 int last_weighted_variable=w.number_of_weighted_variables()-1; 128 128 129 129 … … 167 167 // For the time needed by this function see the remarks for ideal::eliminate(). 168 168 169 for( short i=0;i<Number_of_Lists;i++)169 for(int i=0;i<Number_of_Lists;i++) 170 170 { 171 171 iter.set_to_list(generators[i]); … … 260 260 // the aux_list and then reinserted according to their new head. 261 261 262 for( short i=0;i<Number_of_Lists;i++)262 for(int i=0;i<Number_of_Lists;i++) 263 263 { 264 264 iter.set_to_list(generators[i]); … … 314 314 315 315 316 ideal& ideal::swap_variables_unsafe(const short& i, const short& j)316 ideal& ideal::swap_variables_unsafe(const int& i, const int& j) 317 317 { 318 318 // first check arguments … … 320 320 || (j<0) || (j>=w.number_of_weighted_variables())) 321 321 { 322 cout<<"WARNING: ideal::swap_variables(const short&, const short&)\n "323 "or ideal::swap_variables_unsafe(const short&, const short&):\n"322 cout<<"WARNING: ideal::swap_variables(const int&, const int&)\n " 323 "or ideal::swap_variables_unsafe(const int&, const int&):\n" 324 324 "index out of range"<<endl; 325 325 return *this; … … 353 353 // But head and tail are not adapted to the new term ordering induced by 354 354 // the change of the variable order - this is only done in the "safe" 355 // routine swap_variables(const short&, const short&).356 357 for( short l=0;l<Number_of_Lists;l++)355 // routine swap_variables(const int&, const int&). 356 357 for(int l=0;l<Number_of_Lists;l++) 358 358 { 359 359 iter.set_to_list(generators[l]); … … 393 393 394 394 395 ideal& ideal::swap_variables(const short& i, const short& j)395 ideal& ideal::swap_variables(const int& i, const int& j) 396 396 { 397 397 … … 407 407 408 408 409 ideal& ideal::flip_variable_unsafe(const short& i)409 ideal& ideal::flip_variable_unsafe(const int& i) 410 410 { 411 411 // first check argument 412 412 if((i<0) || (i>=w.number_of_weighted_variables())) 413 413 { 414 cout<<"WARNING: ideal::flip_variables(const short&):\n"414 cout<<"WARNING: ideal::flip_variables(const int&):\n" 415 415 "argument out of range, nothing done"<<endl; 416 416 return *this; … … 439 439 // to the aux_list and then reinserted according to their new head. 440 440 441 for( short l=0;l<Number_of_Lists;l++)441 for(int l=0;l<Number_of_Lists;l++) 442 442 { 443 443 iter.set_to_list(generators[l]);
Note: See TracChangeset
for help on using the changeset viewer.