Changeset 7a8011 in git for libpolys/coeffs/rmodulon.cc


Ignore:
Timestamp:
Apr 21, 2011, 2:12:11 PM (12 years ago)
Author:
Hans Schoenemann <hannes@…>
Branches:
(u'jengelh-datetime', 'ceac47cbc86fe4a15902392bdbb9bd2ae0ea02c6')(u'spielwiese', 'a800fe4b3e9d37a38c5a10cc0ae9dfa0c15a4ee6')
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/coeffs/rmodulon.cc

    r8167af r7a8011  
    2525
    2626extern omBin gmp_nrz_bin;
     27
     28void    nrnCoeffWrite  (const coeffs r)
     29{
     30  long l = (long)mpz_sizeinbase(r->modBase, 10) + 2;
     31  char* s = (char*) omAlloc(l);
     32  if (nCoeff_is_Ring_ModN(r)) Print("//  Z/%s\n", s);
     33  else if (nCoeff_is_Ring_PtoM(r)) Print("//  Z/%s^%lu\n", s, r->modExponent);
     34  omFreeSize((ADDRESS)s, l);
     35}
    2736
    2837/* for initializing function pointers */
     
    6574  r->cfExtGcd      = nrnExtGcd;
    6675  r->cfName        = ndName;
     76  r->cfCoeffWrite  = nrnCoeffWrite;
    6777#ifdef LDEBUG
    6878  r->cfDBTest      = nrnDBTest;
Note: See TracChangeset for help on using the changeset viewer.