Changeset ca4a891 in git


Ignore:
Timestamp:
Jul 3, 2006, 7:12:55 AM (18 years ago)
Author:
Michael Brickenstein <bricken@…>
Branches:
(u'spielwiese', '17f1d200f27c5bd38f5dfc6e8a0879242279d1d8')
Children:
178d03dd7562b3d36fc0f55c2e57b4d2beb913be
Parents:
79374dd582cd8e7733064c67bce179b0d0f03b31
Message:
*bricken: some int to wlen_type


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

Legend:

Unmodified
Added
Removed
  • kernel/tgb.cc

    r79374dd rca4a891  
    55*  Computer Algebra System SINGULAR     *
    66****************************************/
    7 /* $Id: tgb.cc,v 1.98 2006-06-30 08:45:44 bricken Exp $ */
     7/* $Id: tgb.cc,v 1.99 2006-07-03 05:12:55 bricken Exp $ */
    88/*
    99* ABSTRACT: slimgb and F4 implementation
     
    172172inline wlen_type pSLength(poly p,int l)
    173173{
    174   int c;
     174  wlen_type c;
    175175  number coef=pGetCoeff(p);
    176176  if (rField_is_Q(currRing)){
     
    192192{
    193193  int s=0;
    194   int c;
     194  wlen_type c;
    195195  number coef;
    196196  if(lm==NULL)
     
    440440  if(c->isDifficultField) {
    441441    if(c->eliminationProblem){
    442       int cs;
     442      wlen_type cs;
    443443      number coef=pGetCoeff(p);
    444444      if (rField_is_Q(currRing)){
     
    446446      }
    447447      else
    448      cs=nSize(coef);
     448        cs=nSize(coef);
    449449     wlen_type erg=cs;
     450     if(TEST_V_COEFSTRAT)
     451        erg*=cs;
    450452     //erg*=cs;//for quadratic
    451453     erg*=pELength(p,c,l);
     
    480482      //s=kSBucketLength(bucket,this->p);
    481483      if(c->eliminationProblem){
    482     int cs;
     484    wlen_type cs;
    483485    number coef;
    484486
     
    507509    //erg*=cs;//for quadratic
    508510    erg*=cs;
     511    if (TEST_V_COEFSTRAT)
     512        erg*=cs;
    509513    //return cs*kEBucketLength(this->bucket,this->p,c);
    510514    return erg;
     
    702706
    703707//! returns position sets w as weight
    704 int find_best(red_object* r,int l, int u, int &w, slimgb_alg* c){
     708int find_best(red_object* r,int l, int u, wlen_type &w, slimgb_alg* c){
    705709  int best=l;
    706710  int i;
    707711  w=r[l].guess_quality(c);
    708712  for(i=l+1;i<=u;i++){
    709     int w2=r[i].guess_quality(c);
     713    wlen_type w2=r[i].guess_quality(c);
    710714    if(w2<w){
    711715      w=w2;
     
    28622866
    28632867
    2864 static inline int quality_of_pos_in_strat_S(int pos, slimgb_alg* c){
     2868static inline wlen_type quality_of_pos_in_strat_S(int pos, slimgb_alg* c){
    28652869  if (c->strat->lenSw!=NULL) return c->strat->lenSw[pos];
    28662870  return c->strat->lenS[pos];
    28672871}
    2868 static inline int quality_of_pos_in_strat_S_mult_high(int pos, poly high, slimgb_alg* c)
     2872static inline wlen_type quality_of_pos_in_strat_S_mult_high(int pos, poly high, slimgb_alg* c)
    28692873  //meant only for nc
    28702874{
     
    28722876  pExpVectorDiff(m,high ,c->strat->S[pos]);
    28732877  poly product=nc_mm_Mult_p(m, pCopy(c->strat->S[pos]), c->r);
    2874   int erg=pQuality(product,c);
     2878  wlen_type erg=pQuality(product,c);
    28752879  pDelete(&m);
    28762880  pDelete(&product);
     
    28852889    {
    28862890      int i;
    2887       int quality_a=quality_of_pos_in_strat_S(erg.reduce_by,c);
     2891      wlen_type quality_a=quality_of_pos_in_strat_S(erg.reduce_by,c);
    28882892      int best=erg.to_reduce_u+1;
    28892893/*
     
    28962900      }
    28972901      if(best!=erg.to_reduce_u+1){*/
    2898       int qc;
     2902      wlen_type qc;
    28992903      best=find_best(los,erg.to_reduce_l,erg.to_reduce_u,qc,c);
    29002904      if(qc<quality_a){
     
    29232927
    29242928  int i;
    2925   int quality_a=quality_of_pos_in_strat_S(erg.reduce_by,c);
     2929  wlen_type quality_a=quality_of_pos_in_strat_S(erg.reduce_by,c);
    29262930  if (c->nc)
    29272931    quality_a=quality_of_pos_in_strat_S_mult_high(erg.reduce_by, los[erg.to_reduce_u].p, c);
    29282932  int best=erg.to_reduce_u+1;
    2929   int qc;
     2933  wlen_type qc;
    29302934  best=find_best(los,erg.to_reduce_l,erg.to_reduce_u,qc,c);
    29312935  assume(qc==los[best].guess_quality(c));
     
    30013005      int best=erg.reduce_by;
    30023006      wlen_type quality_a=los[erg.reduce_by].guess_quality(c);
    3003       int qc;
     3007      wlen_type qc;
    30043008      best=find_best(los,erg.to_reduce_l,erg.to_reduce_u,qc,c);
    30053009
     
    30223026      //with same leading term
    30233027      int il=erg.reduce_by;
    3024       int quality_a =los[erg.reduce_by].guess_quality(c);
    3025       int qc;
     3028      wlen_type quality_a =los[erg.reduce_by].guess_quality(c);
     3029      wlen_type qc;
    30263030      while((il>0) && pLmEqual(los[il-1].p,los[il].p)){
    30273031  il--;
Note: See TracChangeset for help on using the changeset viewer.