Changeset 1f18bb in git


Ignore:
Timestamp:
Dec 6, 2006, 6:50:15 PM (17 years ago)
Author:
Hans Schönemann <hannes@…>
Branches:
(u'spielwiese', '91fdef05f09f54b8d58d92a472e9c4a43aa4656f')
Children:
f4fea8560f31694a2e5242a206281daa4f5adb99
Parents:
66164a0545b2353ab285a9633ab9464f021bf294
Message:
*hannes: name collision on sunos: gamma->in_gamma


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

Legend:

Unmodified
Added
Removed
  • Singular/interpolation.cc

    r66164a r1f18bb  
    104104modp_result_entry *cur_result; // pointer to current result (as before)
    105105modp_number *congr; // primes used in computations (chinese remainder theorem) (not used for modp)
    106 modp_number *gamma; // inverts used in chinese remainder theorem (not used for modp)
     106modp_number *in_gamma; // inverts used in chinese remainder theorem (not used for modp)
    107107mpz_t bigcongr; // result, in fact, is given in mod bigcongr (not used for modp)
    108108
     
    10441044     modp_number *congr_ptr;
    10451045     modp_number prod;
    1046      gamma=(modp_number*)mdmALLOC(sizeof(modp_number)*n);
     1046     in_gamma=(modp_number*)mdmALLOC(sizeof(modp_number)*n);
    10471047     congr=(modp_number*)mdmALLOC(sizeof(modp_number)*n);
    10481048     congr_ptr=congr;
     
    10571057         prod=congr[0]%congr[k];
    10581058         for (i=1;i<=k-1;i++) prod=(prod*congr[i])%congr[k];
    1059          gamma[i]=OneInverse(prod,congr[k]);
     1059         in_gamma[i]=OneInverse(prod,congr[k]);
    10601060     }
    10611061     mpz_init(bigcongr);
     
    10661066void CloseChinese (int n) // after CRA
    10671067{
    1068      mdmFREE(gamma);
     1068     mdmFREE(in_gamma);
    10691069     mdmFREE(congr);
    10701070     mpz_clear(bigcongr);
     
    11311131             temp=u[k]-temp;
    11321132             if (temp<0) temp=temp+congr[k];
    1133              v[k]=(temp*gamma[k])%congr[k];
     1133             v[k]=(temp*in_gamma[k])%congr[k];
    11341134         }
    11351135         mpz_set_si(sol,v[n-1]);
Note: See TracChangeset for help on using the changeset viewer.