Changeset 27bb97f in git


Ignore:
Timestamp:
Nov 12, 2009, 11:55:27 AM (15 years ago)
Author:
Hans Schönemann <hannes@…>
Branches:
(u'fieker-DuVal', '117eb8c30fc9e991c4decca4832b1d19036c4c65')(u'spielwiese', 'd25190065115c859833252500a64cfb7b11e3a50')
Children:
7c0ec64d02acb77b4c31f823ce2de8ad57608f64
Parents:
82280dceb4425e375b32418f9021aa6a5f480272
Message:
*hannes: debug stuff: out_cf

git-svn-id: file:///usr/local/Singular/svn/trunk@12273 2c84dea3-7e68-4137-9b89-c4e89433aadc
Location:
factory
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • factory/NTLconvert.cc

    r82280d r27bb97f  
    5353#endif
    5454 
    55 void out_cf(char *s1,const CanonicalForm &f,char *s2);
     55void out_cf(const char *s1,const CanonicalForm &f,const char *s2);
    5656       
    5757
     
    7373// OUTPUT: The converted NTL-polynomial over F_p of type ZZpX                 //
    7474////////////////////////////////////////////////////////////////////////////////
    75 
    76 #if 0
    77 void out_cf(char *s1,const CanonicalForm &f,char *s2)
    78 {
    79   printf("%s",s1);
    80   if (f.isZero()) printf("+0");
    81   else if (! f.inCoeffDomain() )
    82   {
    83     int l = f.level();
    84     for ( CFIterator i = f; i.hasTerms(); i++ )
    85     {
    86       int e=i.exp();
    87       printf("+(");out_cf("+(",i.coeff(),")*v(");printf("%d)^%d",l,e);
    88     }
    89   }
    90   else
    91   {
    92     if ( f.isImm() )
    93     {
    94       printf("+%d(",f.intval());
    95     }
    96     else printf("+...(");
    97     if (f.inZ()) printf("Z)");
    98     else if (f.inQ()) printf("Q)");
    99     else if (f.inFF()) printf("FF)");
    100     else if (f.inPP()) printf("PP)");
    101     else if (f.inGF()) printf("PP)");
    102     else if (f.inExtension()) printf("E(%d))",f.level());
    103   }
    104   printf("%s",s2);
    105 }
    106 #endif
    10775
    10876ZZ_pX convertFacCF2NTLZZpX(CanonicalForm f)
  • factory/cf_algorithm.cc

    r82280d r27bb97f  
    3131#include "ftmpl_functions.h"
    3232
    33 void out_cf(char *s1,const CanonicalForm &f,char *s2);
     33void out_cf(const char *s1,const CanonicalForm &f,const char *s2);
    3434
    3535//{{{ CanonicalForm psr ( const CanonicalForm & f, const CanonicalForm & g, const Variable & x )
  • factory/cf_factor.cc

    r82280d r27bb97f  
    8686#if 1
    8787//#ifndef NOSTREAMIO
    88 void out_cf(char *s1,const CanonicalForm &f,char *s2)
     88void out_cf(const char *s1,const CanonicalForm &f,const char *s2)
    8989{
    9090  printf("%s",s1);
  • factory/cf_gcd.cc

    r82280d r27bb97f  
    3131static void cf_prepgcd( const CanonicalForm &, const CanonicalForm &, int &, int &, int & );
    3232
    33 void out_cf(char *s1,const CanonicalForm &f,char *s2);
     33void out_cf(const char *s1,const CanonicalForm &f,const char *s2);
    3434
    3535CanonicalForm chinrem_gcd(const CanonicalForm & FF,const CanonicalForm & GG);
  • factory/fieldGCD.cc

    r82280d r27bb97f  
    2121#include "cf_generator.h"
    2222
    23 void out_cf(char *s1,const CanonicalForm &f,char *s2);
     23void out_cf(const char *s1,const CanonicalForm &f,const char *s2);
    2424
    2525
Note: See TracChangeset for help on using the changeset viewer.