Changeset 26d633 in git


Ignore:
Timestamp:
Feb 24, 2009, 6:40:28 PM (15 years ago)
Author:
Hans Schönemann <hannes@…>
Branches:
(u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
Children:
7012d0f08e30c9406b7eb002fa6bd6b55e8cd1cd
Parents:
b35f71c1b167b8be236dfa80369381a582f6cfe5
Message:
*hannes: syntax fix


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

Legend:

Unmodified
Added
Removed
  • kernel/gr_kstd2.cc

    rb35f71c r26d633  
    22*  Computer Algebra System SINGULAR     *
    33****************************************/
    4 /* $Id: gr_kstd2.cc,v 1.29 2009-02-23 19:22:27 levandov Exp $ */
     4/* $Id: gr_kstd2.cc,v 1.30 2009-02-24 17:40:28 Singular Exp $ */
    55/*
    66*  ABSTRACT -  Kernel: noncomm. alg. of Buchberger
     
    11231123//        }
    11241124
    1125      
     1125
    11261126      if( ! rIsRatGRing(currRing) )
    1127       { 
     1127      {
    11281128        strat->P.p = nc_CreateSpoly(strat->P.p1,strat->P.p2,currRing);
    11291129      }
     1130#ifdef HAVE_RATGRING
    11301131      else
    11311132      {
     
    11331134        strat->P.p = nc_rat_CreateSpoly(strat->P.p1,strat->P.p2,currRing->real_var_start-1,currRing);
    11341135      }
     1136#endif
    11351137
    11361138
  • kernel/gring.cc

    rb35f71c r26d633  
    77 *  Author:  levandov (Viktor Levandovsky)
    88 *  Created: 8/00 - 11/00
    9  *  Version: $Id: gring.cc,v 1.69 2009-02-23 19:22:27 levandov Exp $
     9 *  Version: $Id: gring.cc,v 1.70 2009-02-24 17:40:28 Singular Exp $
    1010 *******************************************************************/
    1111
     
    249249  rTest(rRing);
    250250#endif
    251  
     251
    252252  int lp, lq;
    253253
     
    257257
    258258  CPolynomialSummator sum(rRing, bUsePolynomial);
    259  
     259
    260260  if (lq <= lp) // ?
    261261  {
     
    308308      sum += nc_mm_Mult_pp( p, pPolyQ, rRing);
    309309  }
    310  
     310
    311311  return(sum);
    312312}
     
    775775  int *Nxt=(int*)omAlloc0((rN+1)*sizeof(int));
    776776  int *lF=(int *)omAlloc0((rN+1)*sizeof(int));
    777  
     777
    778778  int cnt=0; int cnf=0;
    779779  /* splitting F wrt jG */
     
    783783    if (F[i]!=0) cnf++;
    784784  }
    785  
     785
    786786  if (cnf==0)
    787787  {
    788788    freeT(Prv,rN); Prv = NULL;
    789789  }
    790  
     790
    791791  for (i=jG+1;i<=rN;i++)
    792792  {
     
    817817       p_Test(Rout,r);
    818818#endif
    819        
     819
    820820       freeT(Prv,rN);
    821821       Prv = NULL;
    822        
     822
    823823       out=gnc_mm_Mult_p(Rout,out,r); /* getting the final result */
    824824    }
     
    826826    freeT(lF,rN);
    827827    lF = NULL;
    828    
     828
    829829    p_Delete(&Rout,r);
    830830
     
    832832    assume(lF == NULL);
    833833    assume(Prv == NULL);
    834    
     834
    835835    return (out);
    836836  }
     
    955955    p_Delete(&Rout,r);
    956956  }
    957  
     957
    958958  return (out);
    959959}
     
    10111011  p_Delete(&y,r);
    10121012  //  t=MATELEM(cMT,a,b);
    1013   t= nc_p_CopyGet(MATELEM(cMT,a,b),r); 
     1013  t= nc_p_CopyGet(MATELEM(cMT,a,b),r);
    10141014  //  return(p_Copy(t,r));
    10151015  /* since the last computed element was cMT[a,b] */
     
    10221022  if(bNoFormula)
    10231023    return gnc_uu_Mult_ww_vert(i, a, j, b, r);
    1024  
     1024
    10251025  CFormulaPowerMultiplier* FormulaMultiplier = GetFormulaPowerMultiplier(r);
    10261026  Enum_ncSAType PairType = _ncSA_notImplemented;
    1027  
     1027
    10281028  if( FormulaMultiplier != NULL )
    10291029    PairType = FormulaMultiplier->GetPair(j, i);
    1030    
     1030
    10311031
    10321032  if( PairType == _ncSA_notImplemented )
    10331033    return gnc_uu_Mult_ww_vert(i, a, j, b, r);
    10341034
    1035  
     1035
    10361036 //    return FormulaMultiplier->Multiply(j, i, b, a);
    10371037  poly t = CFormulaPowerMultiplier::Multiply( PairType, j, i, b, a, r);
    1038  
     1038
    10391039  int rN=r->N;
    10401040  matrix cMT = r->GetNC()->MT[UPMATELEM(j,i,rN)];         /* cMT=current MT */
     
    10421042
    10431043  MATELEM(cMT, a, b) = nc_p_CopyPut(t,r);
    1044  
     1044
    10451045  //  t=MATELEM(cMT,a,b);
    10461046//  t= nc_p_CopyGet(MATELEM(cMT,a,b),r);
     
    11021102  }
    11031103
    1104  
     1104
    11051105  /* we are here if  i>j and variables do not commute or quasicommute */
    11061106  /* in fact, now a>=1 and b>=1; and j<i */
     
    19001900  }
    19011901
    1902   poly m; 
     1902  poly m;
    19031903  if ( ! rIsRatGRing(currRing))
    19041904  {
    19051905    m = p_Lcm(p1, p2, si_max(lCompP1, lCompP2), r);
    19061906  }
     1907#ifdef HAVE_RATGRING
    19071908  else
    19081909  {
     
    19101911    m = p_LcmRat(p1, p2, si_max(lCompP1, lCompP2), r);
    19111912  }
     1913#endif
    19121914
    19131915//  n_Delete(&p_GetCoeff(m, r), r);
     
    22482250
    22492251  CPolynomialSummator sum(currRing, UseBuckets == 0);
    2250  
     2252
    22512253  while (p!=NULL)
    22522254  {
     
    26632665    r->GetNC()->GetFormulaPowerMultiplier() = NULL;
    26642666  }
    2665  
    2666  
     2667
     2668
    26672669  int i,j;
    26682670  int rN=r->N;
     
    32003202bool nc_rCopy(ring res, const ring r, bool bSetupQuotient)
    32013203{
    3202   if (nc_CallPlural(r->GetNC()->C, r->GetNC()->D, NULL, NULL, res, bSetupQuotient, true, true, r)) 
     3204  if (nc_CallPlural(r->GetNC()->C, r->GetNC()->D, NULL, NULL, res, bSetupQuotient, true, true, r))
    32033205  {
    32043206    WarnS("Error occured while coping/setuping the NC structure!"); // No reaction!???
     
    33093311  if(!rIsSCA(r) && !bNoFormula)
    33103312    ncInitSpecialPowersMultiplication(r);
    3311  
    3312  
     3313
     3314
    33133315  if (save != currRing)
    33143316    rChangeCurrRing(save);
Note: See TracChangeset for help on using the changeset viewer.