Changeset 903f87 in git


Ignore:
Timestamp:
Aug 23, 2012, 3:52:41 PM (10 years ago)
Author:
Martin Lee <martinlee84@…>
Branches:
(u'jengelh-datetime', 'ceac47cbc86fe4a15902392bdbb9bd2ae0ea02c6')(u'spielwiese', 'ad2543eab51733612ba7d118afc77edca719600e')
Children:
41e77d824f022c4ab079cc9a0227f0b4a5c44965
Parents:
b30017f937034d50539db11d0bee89dc2991375c
git-author:
Martin Lee <martinlee84@web.de>2012-08-23 15:52:41+02:00
git-committer:
Martin Lee <martinlee84@web.de>2012-09-04 18:01:19+02:00
Message:
chg: added output for GF
File:
1 edited

Legend:

Unmodified
Added
Removed
  • factory/cf_factor.cc

    rb30017 r903f87  
    127127    if ( f.isImm() )
    128128    {
    129       printf("+%ld",f.intval());
     129      if (CFFactory::gettype()==GaloisFieldDomain)
     130      {
     131         int a= imm2int (f.getval());
     132         if ( a == gf_q )
     133           printf ("+%d", a);
     134         else  if ( a == 0 )
     135           printf ("+1");
     136         else  if ( a == 1 )
     137           printf ("+%c",gf_name);
     138         else
     139         {
     140           printf ("+%c",gf_name);
     141           printf ("^%d",a);
     142         }
     143      }
     144      else
     145        printf("+%ld",f.intval());
    130146    }
    131147    else
Note: See TracChangeset for help on using the changeset viewer.