Ignore:
Timestamp:
Apr 21, 2011, 2:12:11 PM (13 years ago)
Author:
Hans Schoenemann <hannes@…>
Branches:
(u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
Children:
9b9ae7fadb61129e98f779cff3f5ea3435f370a7
Parents:
8167afd5e92aaed2ba8a54e3c1566fd86d339aa8
git-author:
Hans Schoenemann <hannes@mathematik.uni-kl.de>2011-04-21 14:12:11+02:00
git-committer:
Mohamed Barakat <mohamed.barakat@rwth-aachen.de>2011-11-09 12:31:25+01:00
Message:
more CoeffWrite: rings, long R, long C
File:
1 edited

Legend:

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

    r8167af r7a8011  
    281281  n_CoeffWrite(r->cf);
    282282#if 0
    283   if (rField_is_GF(r))
    284   {
    285     Print("//   # ground field : %d\n",r->cf->ch);
    286     Print("//   primitive element : %s\n", r->parameter[0]);
    287     StringSetS("//   minpoly        : ");
    288     nfShowMipo(r->cf);PrintS(StringAppendS("\n"));
    289   }
    290 #ifdef HAVE_RINGS
    291   else if (rField_is_Ring(r))
    292   {
    293     PrintS("//   coeff. ring is : ");
    294     if (rField_is_Ring_Z(r)) PrintS("Integers\n");
    295     long l = (long)mpz_sizeinbase(r->cf->modBase, 10) + 2;
    296     char* s = (char*) omAlloc(l);
    297     mpz_get_str(s,10,r->cf->modBase);
    298     if (rField_is_Ring_ModN(r)) Print("Z/%s\n", s);
    299     if (rField_is_Ring_2toM(r)) Print("Z/2^%lu\n", r->cf->modExponent);
    300     if (rField_is_Ring_PtoM(r)) Print("Z/%s^%lu\n", s, r->cf->modExponent);
    301     omFreeSize((ADDRESS)s, l);
    302   }
    303 #endif
    304283  else
    305284  {
Note: See TracChangeset for help on using the changeset viewer.