Changeset 7fee876 in git for libpolys/coeffs/test.cc


Ignore:
Timestamp:
Mar 16, 2012, 9:26:19 PM (12 years ago)
Author:
Oleksandr Motsak <motsak@…>
Branches:
(u'spielwiese', '17f1d200f27c5bd38f5dfc6e8a0879242279d1d8')
Children:
5a72fe43aa1fbae0fb93ebbff5685375e726f93c
Parents:
ce1f78b09d525de2d3babcf986a9f4821e60ed00
git-author:
Oleksandr Motsak <motsak@mathematik.uni-kl.de>2012-03-16 21:26:19+01:00
git-committer:
Oleksandr Motsak <motsak@mathematik.uni-kl.de>2012-03-17 05:41:42+01:00
Message:
moved prarameter-handling to coeffs from rings.* and related fixes

chg: removed complex_parameter, m_nfParameter
add: n_NumberOfParameters, n_ParameterNames, n_Param(coeffs)
fix: par(1) (n_Param) for n_GF & n_long_C
fix/chg: n_long_C is an Extension as well (rIsExtension)
fix: n_long_C ngcCoeffWrite: additional space needed for compatibility with legacy Singular
fix: complexToStr over non-C coeffs!
fix: rRenameVars renames _new_ VARIABLES instead of _old_ parameters!
fix: coeff construction was broken in walk.cc
add/fix: nfKillChar, ngcKillChar
chg: cleanup of headers & tests
chg: parameter output during "make check"
File:
1 edited

Legend:

Unmodified
Added
Removed
  • libpolys/coeffs/test.cc

    rce1f78 r7fee876  
    7777  PrintS("two: "); PrintSized(two, r);
    7878
    79   if (getCoeffType(r) == n_GF) //some special test for GF
    80   {
    81     number z = nfPar (0, r); // also any integer instead of 0//?
    82 
    83     PrintS("Generator: "); PrintSized(z, r);
     79  if (n_NumberOfParameters(r) > 0)
     80  {
     81    number z = n_Param(1, r); // also any integer instead of 0//?
     82
     83    PrintS("Parameter: "); PrintSized(z, r);
    8484   
    8585    n_Delete(&z, r);   
     
    214214  else if( type == n_long_C )
    215215  {
    216     assume( r->cfInit == ngcInit );
    217     assume( r->cfAdd == ngcAdd );
    218     assume( r->cfDelete == ngcDelete );   
     216//     assume( r->cfInit == ngcInit );
     217//     assume( r->cfAdd == ngcAdd );
     218//     assume( r->cfDelete == ngcDelete );   
    219219  }
    220220  else if( type == n_R )
     
    240240  else if( type == n_GF )
    241241  {
    242     assume( r->cfInit == nfInit );
    243     assume( r->cfAdd == nfAdd );
     242//     assume( r->cfInit == nfInit );
     243//     assume( r->cfAdd == nfAdd );
    244244    //assume( r->cfDelete == nfDelete );
    245245  }
Note: See TracChangeset for help on using the changeset viewer.