Changeset a934fb3 in git for libpolys/polys


Ignore:
Timestamp:
Mar 11, 2016, 3:36:57 PM (8 years ago)
Author:
Hans Schoenemann <hannes@…>
Branches:
(u'fieker-DuVal', '117eb8c30fc9e991c4decca4832b1d19036c4c65')(u'spielwiese', '38dfc5131670d387a89455159ed1e071997eec94')
Children:
23812d3dd3a69ed0874b01c271d1908acd7f0f05
Parents:
052df146007b4badfc821b69808a085b155cc991
Message:
fix: tr. #753 (non-commutative imap)
Location:
libpolys/polys/monomials
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • libpolys/polys/monomials/p_polys.cc

    r052df1 ra934fb3  
    39253925*/
    39263926poly p_PermPoly (poly p, const int * perm, const ring oldRing, const ring dst,
    3927        nMapFunc nMap, const int *par_perm, int OldPar)
     3927       nMapFunc nMap, const int *par_perm, int OldPar, BOOLEAN use_mult)
    39283928{
    39293929#if 0
     
    39383938  assume(dst != NULL);
    39393939  assume(dst->cf != NULL);
     3940  #ifdef HAVE_PLURAL
     3941  poly tmp_mm=p_One(dst);
     3942  #endif
    39403943  while (p != NULL)
    39413944  {
     
    39833986            p_SetExp(qq, i, e, dst);
    39843987          else if (perm[i]>0)
     3988          {
     3989            #ifdef HAVE_PLURAL
     3990            if(use_mult)
     3991            {
     3992              p_SetExp(tmp_mm,perm[i],e,dst);
     3993              p_Setm(tmp_mm,dst);
     3994              qq=p_Mult_mm(qq,tmp_mm,dst);
     3995              p_SetExp(tmp_mm,perm[i],0,dst);
     3996
     3997            }
     3998            else
     3999            #endif
    39854000            p_AddExp(qq,perm[i], e/*p_GetExp( p,i,oldRing)*/, dst);
     4001          }
    39864002          else if (perm[i]<0)
    39874003          {
     
    41244140  PrintS("result: "); p_Write(result,dst,dst);
    41254141#endif
     4142  #ifdef HAVE_PLURAL
     4143  p_LmDelete(&tmp_mm,dst);
     4144  #endif
    41264145  return result;
    41274146}
  • libpolys/polys/monomials/p_polys.h

    r052df1 ra934fb3  
    19151915
    19161916poly p_PermPoly (poly p, const int * perm,const ring OldRing, const ring dst,
    1917                      nMapFunc nMap, const int *par_perm=NULL, int OldPar=0);
     1917                     nMapFunc nMap, const int *par_perm=NULL, int OldPar=0,
     1918                     BOOLEAN use_mult=FALSE);
    19181919
    19191920/*----------------------------------------------------*/
Note: See TracChangeset for help on using the changeset viewer.