Changeset 03f7b5 in git for libpolys/polys/ext_fields


Ignore:
Timestamp:
Oct 11, 2011, 7:22:48 PM (13 years ago)
Author:
Oleksandr Motsak <motsak@…>
Branches:
(u'spielwiese', '17f1d200f27c5bd38f5dfc6e8a0879242279d1d8')
Children:
3c56d88ff43b9f485d15dbe25b01664e8e072f04
Parents:
5f4015a4722191e67435fb8503aa693c23375458
git-author:
Oleksandr Motsak <motsak@mathematik.uni-kl.de>2011-10-11 19:22:48+02:00
git-committer:
Mohamed Barakat <mohamed.barakat@rwth-aachen.de>2011-11-09 16:13:59+01:00
Message:
ADD: detailed printing vs typing for coeff. domains (mostly - minpoly related)
Location:
libpolys/polys/ext_fields
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • libpolys/polys/ext_fields/algext.cc

    r5f4015a r03f7b5  
    7070#define naMinpoly naRing->minideal->m[0]
    7171
    72 
    7372/// forward declarations
    7473BOOLEAN  naGreaterZero(number a, const coeffs cf);
     
    9796int      naSize(number a, const coeffs cf);
    9897void     naDelete(number *a, const coeffs cf);
    99 void     naCoeffWrite(const coeffs cf);
     98void     naCoeffWrite(const coeffs cf, BOOLEAN details);
    10099number   naIntDiv(number a, number b, const coeffs cf);
    101100const char * naRead(const char *s, number *a, const coeffs cf);
     101
    102102static BOOLEAN naCoeffIsEqual(const coeffs cf, n_coeffType n, void * param);
    103103
     
    256256}
    257257
    258 void naCoeffWrite(const coeffs cf)
     258void naCoeffWrite(const coeffs cf, BOOLEAN details)
    259259{
    260260  assume( cf != NULL );
     
    265265  assume( A->cf != NULL );
    266266   
    267   n_CoeffWrite(A->cf);
     267  n_CoeffWrite(A->cf, details);
    268268 
    269269//  rWrite(A);
     
    277277    Print("%s ", rRingVar(nop, A));
    278278 
     279  PrintLn();
     280 
    279281  const ideal I = A->minideal;
    280282
     
    282284  assume( IDELEMS(I) == 1 );
    283285 
    284   PrintS("\n//   minpoly        : ("); p_Write0( I->m[0], A); PrintS(")\n");
     286
     287  if ( details )
     288  {
     289    PrintS("//   minpoly        : (");
     290    p_Write0( I->m[0], A);
     291    PrintS(")");
     292  }
     293  else
     294    PrintS("//   minpoly        : ...");
     295 
     296  PrintLn();
    285297 
    286298/*
  • libpolys/polys/ext_fields/transext.cc

    r5f4015a r03f7b5  
    118118int      ntSize(number a, const coeffs cf);
    119119void     ntDelete(number * a, const coeffs cf);
    120 void     ntCoeffWrite(const coeffs cf);
     120void     ntCoeffWrite(const coeffs cf, BOOLEAN details);
    121121number   ntIntDiv(number a, number b, const coeffs cf);
    122122const char * ntRead(const char *s, number *a, const coeffs cf);
     
    377377}
    378378
    379 void ntCoeffWrite(const coeffs cf)
     379void ntCoeffWrite(const coeffs cf, BOOLEAN details)
    380380{
    381381  assume( cf != NULL );
     
    386386  assume( A->cf != NULL );
    387387
    388   n_CoeffWrite(A->cf);
     388  n_CoeffWrite(A->cf, details);
    389389
    390390//  rWrite(A);
     
    401401
    402402  PrintS("\n//   minpoly        : 0\n");
    403 
    404403
    405404/*
  • libpolys/polys/ext_fields/transext.h

    r5f4015a r03f7b5  
    125125int      ntSize(number a, const coeffs cf);
    126126void     ntDelete(number * a, const coeffs cf);
    127 void     ntCoeffWrite(const coeffs cf);
     127void     ntCoeffWrite(const coeffs cf, BOOLEAN details);
    128128number   ntIntDiv(number a, number b, const coeffs cf);
    129129const char * ntRead(const char *s, number *a, const coeffs cf);
Note: See TracChangeset for help on using the changeset viewer.