Ignore:
Timestamp:
Feb 9, 2010, 6:50:36 PM (14 years ago)
Author:
Hans Schönemann <hannes@…>
Branches:
(u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
Children:
6c939eebfd221f2512b1e27d158d1b5457206987
Parents:
a477f80136c773f8acffd73512f53bf88a7c6fe8
Message:
short -> int

git-svn-id: file:///usr/local/Singular/svn/trunk@12539 2c84dea3-7e68-4137-9b89-c4e89433aadc
File:
1 edited

Legend:

Unmodified
Added
Removed
  • IntegerProgramming/ideal_stuff.cc

    ra477f80 r194c2e7  
    6565
    6666  // elimination
    67   for(short i=0;i<Number_of_Lists;i++)
     67  for(int i=0;i<Number_of_Lists;i++)
    6868  {
    6969    iter.set_to_list(generators[i]);
     
    125125  list_iterator iter;
    126126
    127   short last_weighted_variable=w.number_of_weighted_variables()-1;
     127  int last_weighted_variable=w.number_of_weighted_variables()-1;
    128128
    129129
     
    167167// For the time needed by this function see the remarks for ideal::eliminate().
    168168
    169   for(short i=0;i<Number_of_Lists;i++)
     169  for(int i=0;i<Number_of_Lists;i++)
    170170  {
    171171    iter.set_to_list(generators[i]);
     
    260260// the aux_list and then reinserted according to their new head.
    261261
    262   for(short i=0;i<Number_of_Lists;i++)
     262  for(int i=0;i<Number_of_Lists;i++)
    263263  {
    264264    iter.set_to_list(generators[i]);
     
    314314
    315315
    316 ideal& ideal::swap_variables_unsafe(const short& i, const short& j)
     316ideal& ideal::swap_variables_unsafe(const int& i, const int& j)
    317317{
    318318  // first check arguments
     
    320320     || (j<0) || (j>=w.number_of_weighted_variables()))
    321321  {
    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"
    324324      "index out of range"<<endl;
    325325    return *this;
     
    353353// But head and tail are not adapted to the new term ordering induced by
    354354// 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++)
    358358  {
    359359    iter.set_to_list(generators[l]);
     
    393393
    394394
    395 ideal& ideal::swap_variables(const short& i, const short& j)
     395ideal& ideal::swap_variables(const int& i, const int& j)
    396396{
    397397
     
    407407
    408408
    409 ideal& ideal::flip_variable_unsafe(const short& i)
     409ideal& ideal::flip_variable_unsafe(const int& i)
    410410{
    411411  // first check argument
    412412  if((i<0) || (i>=w.number_of_weighted_variables()))
    413413  {
    414     cout<<"WARNING: ideal::flip_variables(const short&):\n"
     414    cout<<"WARNING: ideal::flip_variables(const int&):\n"
    415415      "argument out of range, nothing done"<<endl;
    416416    return *this;
     
    439439// to the aux_list and then reinserted according to their new head.
    440440
    441   for(short l=0;l<Number_of_Lists;l++)
     441  for(int l=0;l<Number_of_Lists;l++)
    442442  {
    443443    iter.set_to_list(generators[l]);
Note: See TracChangeset for help on using the changeset viewer.