Changeset 36f8d9 in git


Ignore:
Timestamp:
Aug 11, 2004, 3:32:25 PM (19 years ago)
Author:
Hans Schönemann <hannes@…>
Branches:
(u'spielwiese', '0d6b7fcd9813a1ca1ed4220cfa2b104b97a0a003')
Children:
e65fe97407c42bd793157749a8b4dc89f2599006
Parents:
f691ff55cda7f85c9d30797234f6e91f3a44b01a
Message:
*hannes: gcc3.4 changes from Ralf Stephan <ralf@ark.in-berlin.de>


git-svn-id: file:///usr/local/Singular/svn/trunk@7360 2c84dea3-7e68-4137-9b89-c4e89433aadc
Location:
IntegerProgramming
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • IntegerProgramming/LLL.cc

    rf691ff r36f8d9  
    202202}
    203203
    204 
     204typedef BigInt* BigIntP;
    205205
    206206
     
    241241    if(r==1)
    242242    {
    243       H=new (BigInt*)[1];
     243      H=new BigIntP[1];
    244244      H[0]=new BigInt[1];
    245245      H[0][0]=1;
     
    260260// number_of_vectors+1.
    261261
    262   H=new (BigInt*)[number_of_vectors];
     262  H=new BigIntP[number_of_vectors];
    263263  for(short n=0;n<number_of_vectors;n++)
    264264    H[n]=new BigInt[number_of_vectors];
     
    268268  BigInt* d=new BigInt[number_of_vectors+1];
    269269
    270   BigInt** lambda=new (BigInt*)[number_of_vectors];
     270  BigInt** lambda=new BigIntP[number_of_vectors];
    271271  for(short n=1;n<number_of_vectors;n++)
    272272    lambda[n]=new BigInt[n];
     
    411411  BigInt **aux=H;
    412412  if(r>0)
    413     H=new (BigInt*)[r];
     413    H=new BigIntP[r];
    414414  for(short i=0;i<r;i++)
    415415    H[i]=aux[i];
     
    475475  BigInt* d=new BigInt[number_of_vectors+1];
    476476
    477   BigInt** lambda=new (BigInt*)[number_of_vectors];
     477  BigInt** lambda=new BigIntP[number_of_vectors];
    478478  for(short s=1;s<number_of_vectors;s++)
    479479    lambda[s]=new BigInt[s];
  • IntegerProgramming/LLL_lattice_to_send.cc

    rf691ff r36f8d9  
    9191
    9292  lll_d = new mpz_t[F + 1];
    93   lll_lambda = new (mpz_t *)[F + 1];
     93  lll_lambda = new mpz_t *[F + 1];
    9494  mpz_init (lll_d[0]);
    9595  for (i = 1; i <= F; i++) {
     
    194194  aux=new char[tamano];
    195195  fscanf (stdin, "%i, %i\n", &numF, &numC);
    196   base = new (mpz_t *)[numF+1];
     196  base = new mpz_t *[numF+1];
    197197  for (i = 1; i <= numF; i++) {
    198198    base[i] = new mpz_t[numC+1];
  • IntegerProgramming/matrix.cc

    rf691ff r36f8d9  
    99
    1010////////////// constructors and destructor //////////////////////////////////
     11typedef Integer* IntegerP;
     12typedef BigInt* BigIntP;
    1113
    1214matrix::matrix(const short& row_number, const short& column_number)
     
    2830  // memory allocation and initialization
    2931
    30   coefficients=new (Integer*)[rows];
     32  coefficients=new IntegerP[rows];
    3133  for(short i=0;i<rows;i++)
    3234    coefficients[i]=new Integer[columns];
     
    5557  // memory allocation and initialization
    5658
    57   coefficients=new (Integer*)[rows];
     59  coefficients=new IntegerP[rows];
    5860  for(short i=0;i<rows;i++)
    5961    coefficients[i]=new Integer[columns];
     
    98100  }
    99101
    100   coefficients=new (Integer*)[rows];
     102  coefficients=new IntegerP[rows];
    101103  for(short i=0;i<rows;i++)
    102104    coefficients[i]=new Integer[columns];
     
    138140  // memory allocation and initialization
    139141
    140   coefficients=new (Integer*)[rows];
     142  coefficients=new IntegerP[rows];
    141143  for(short i=0;i<rows;i++)
    142144    coefficients[i]=new Integer[columns];
     
    170172  // memory allocation and initialization (also for H)
    171173
    172   coefficients=new (Integer*)[rows];
     174  coefficients=new IntegerP[rows];
    173175  for(short i=0;i<rows;i++)
    174176    coefficients[i]=new Integer[columns];
     
    179181  if(_kernel_dimension>0)
    180182  {
    181     H=new (BigInt*)[_kernel_dimension];
     183    H=new BigIntP[_kernel_dimension];
    182184    for(short k=0;k<_kernel_dimension;k++)
    183185      H[k]=new (BigInt)[columns];
     
    260262  // copy the column vectors of the actual matrix
    261263  // (They are modified by the LLL-algorithm!)
    262   BigInt** b=new (BigInt*)[columns];
     264  BigInt** b=new BigIntP[columns];
    263265  for(short n=0;n<columns;n++)
    264266    b[n]=new BigInt[rows];
Note: See TracChangeset for help on using the changeset viewer.