Changeset 4dcfb4f in git for IntegerProgramming/matrix.cc


Ignore:
Timestamp:
Jan 21, 2005, 5:16:16 PM (19 years ago)
Author:
Hans Schönemann <hannes@…>
Branches:
(u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
Children:
1b61353ce8e537757677d798cb81d4f53609e999
Parents:
a70d5e8c3b16c9476e9db55b342df53dac31b1bb
Message:
*hannes: const Bigint&)0


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

Legend:

Unmodified
Added
Removed
  • IntegerProgramming/matrix.cc

    ra70d5e r4dcfb4f  
    322322    M[i]=0;
    323323    for(short j=0;j<columns;j++)
    324       if(H[i][j]==(const BigInt&)0)
     324      if(H[i][j]==BigInt(0))
    325325        M[i]++;
    326326  }
     
    350350  short min_index=-1;
    351351  for(short i=0;i<_kernel_dimension;i++)
    352     if(M[i]>(const BigInt&)0)
     352    if(M[i]>BigInt(0))
    353353      if(min_index==-1)
    354354        min_index=i;
     
    387387    BOOLEAN found=TRUE;
    388388    for(short j=0;j<columns;j++)
    389       if(H[0][j]==(const BigInt&)0)
     389      if(H[0][j]==BigInt(0))
    390390        found=FALSE;
    391391
     
    407407
    408408    for(short j=0;j<columns;j++)
    409       if(H[0][j]==(const BigInt&)0)
     409      if(H[0][j]==BigInt(0))
    410410      {
    411411        remaining_zero_components++;
    412412        for(short i=current_position;i<_kernel_dimension;i++)
    413           if(H[i][j]==(const BigInt&)0)
     413          if(H[i][j]==BigInt(0))
    414414            M[i]++;
    415415      }
     
    444444    short min_index=0;
    445445    for(short i=current_position;i<_kernel_dimension;i++)
    446       if(M[i]>(const BigInt&)0)
     446      if(M[i]>BigInt(0))
    447447        if(min_index==0)
    448448          min_index=i;
     
    479479      // mult*H[current_position]
    480480      for(short j=0;j<columns;j++)
    481         if(H[0][j]!=(const BigInt&)0)
     481        if(H[0][j]!=BigInt(0))
    482482          if(H[0][j]+(const BigInt&)mult*H[current_position][j]
    483             ==(const BigInt&)0)
     483            ==BigInt(0))
    484484            found=FALSE;
    485485
     
    496496        // mult*H[current_position]
    497497        for(short j=0;j<columns;j++)
    498           if(H[0][j]!=(const BigInt&)0)
     498          if(H[0][j]!=BigInt(0))
    499499            if(H[0][j]-(const BigInt&)mult*H[current_position][j]
    500               ==(const BigInt&)0)
     500              ==BigInt(0))
    501501              found=FALSE;
    502502
     
    534534
    535535  for(short j=0;j<columns;j++)
    536     if(H[0][j]<(const BigInt&)0)
     536    if(H[0][j]<BigInt(0))
    537537      r++;
    538538  // remember that all components of H[0] are !=0
     
    551551    short counter=0;
    552552    for(short j=0;j<columns;j++)
    553       if(H[0][j]>(const BigInt&)0)
     553      if(H[0][j]> BigInt(0))
    554554      {
    555555        F[counter]=j;
     
    565565    short counter=0;
    566566    for(short j=0;j<columns;j++)
    567       if(H[0][j]<(const BigInt&)0)
     567      if(H[0][j]< BigInt(0))
    568568      {
    569569        F[counter]=j;
     
    625625      if(ideal_saturated_by_var[j]==FALSE)
    626626      {
    627         if(H[k][j]>(const BigInt&)0)
     627        if(H[k][j]> BigInt(0))
    628628          pos_sat_var++;
    629629        else
    630           if(H[k][j]<(const BigInt&)0)
     630          if(H[k][j]< BigInt(0))
    631631            neg_sat_var++;
    632632      }
     
    639639      for(short j=0;j<columns;j++)
    640640        if(ideal_saturated_by_var[j]==FALSE)
    641           if(H[k][j]>(const BigInt&)0)
     641          if(H[k][j]> BigInt(0))
    642642            // ideal has to be saturated by the variables corresponding
    643643            // to positive components
     
    648648          }
    649649          else
    650             if(H[k][j]<(const BigInt&)0)
     650            if(H[k][j]< BigInt(0))
    651651              // then the ideal is automatically saturated by the variables
    652652              // corresponding to negative components
     
    657657      for(short j=0;j<columns;j++)
    658658        if(ideal_saturated_by_var[j]==FALSE)
    659           if(H[k][j]<(const BigInt&)0)
     659          if(H[k][j]< BigInt(0))
    660660            // ideal has to be saturated by the variables corresponding
    661661            // to negative components
     
    666666          }
    667667          else
    668             if(H[k][j]>(const BigInt&)0)
     668            if(H[k][j]> BigInt(0))
    669669              // then the ideal is automatically saturated by the variables
    670670              // corresponding to positive components
Note: See TracChangeset for help on using the changeset viewer.