Changeset 6298d6 in git


Ignore:
Timestamp:
Jul 15, 2013, 12:31:19 PM (10 years ago)
Author:
Oleksandr Motsak <motsak@…>
Branches:
(u'jengelh-datetime', 'ceac47cbc86fe4a15902392bdbb9bd2ae0ea02c6')(u'spielwiese', 'f875bbaccd0831e36aaed09ff6adeb3eb45aeb94')
Children:
0382d520426f565cac32c4dfe0d40f988d7c50ad
Parents:
ee9bbe6149d97d547f224a27ae68ee67f173f19d9af5e1fd287578e090f0a1c2d719a85d22012795
Message:
Merge pull request #339 from mmklee/templates_sw

Templates sw
Files:
2 added
5 edited
2 moved

Legend:

Unmodified
Added
Removed
  • factory/ftmpl_inst.cc

    ree9bbe r6298d6  
    7070template List<Variable> Difference ( const List<Variable>&, const List<Variable>& );
    7171
     72// NTL 6
     73#ifdef HAVE_NTL
     74#include<NTL/version.h>
     75#if NTL_MAJOR_VERSION == 6
     76
     77#include<NTL/tools.h>
     78#include<NTL/lzz_pE.h>
     79#include<NTL/lzz_pEX.h>
     80#include<NTL/lzz_p.h>
     81#include<NTL/vector.h>
     82#include<NTL/pair.h>
     83#include<NTL/GF2X.h>
     84#include<NTL/GF2EX.h>
     85#include<NTL/ZZ.h>
     86#include<NTL/ZZX.h>
     87#include<NTL/ZZ_pX.h>
     88#include<NTL/vector.h>
     89#ifdef NTL_CLIENT               // in <NTL/tools.h>: using of name space NTL
     90NTL_CLIENT
     91#endif
     92template void BlockDestroy<zz_pE> (zz_pE*, long);
     93template void BlockConstruct<zz_pE> (zz_pE*, long);
     94template void BlockDestroy<Pair<zz_pEX, long> > (Pair<zz_pEX, long>*, long);
     95template void BlockDestroy<Pair<GF2EX, long> > (Pair<GF2EX, long>*, long);
     96template void BlockDestroy<Pair<ZZX, long> > (Pair<ZZX, long>*, long);
     97template void BlockDestroy<Pair<ZZ_pX, long> > (Pair<ZZ_pX, long>*, long);
     98template void BlockDestroy<Pair<GF2X, long> > (Pair<GF2X, long>*, long);
     99template void BlockDestroy<Vec<zz_pE> > (Vec<zz_pE>*, long);
     100template class Vec<zz_p>;
     101template class Vec<Vec<zz_p> >;
     102template class Vec<zz_pE>;
     103template class Vec<ZZ>;
     104template class Vec<Vec<ZZ> >;
     105template class Mat<zz_p>;
     106template class Mat<zz_pE>;
     107template class Mat<ZZ>;
     108template class Vec<Pair<zz_pEX, long> >;
     109template class Vec<Pair<GF2EX, long> >;
     110template class Vec<Pair<ZZX, long> >;
     111template class Vec<Pair<ZZ_pX, long> >;
     112template class Vec<Pair<GF2X, long> >;
     113template class Vec<Vec<zz_pE> >;
     114template void swap<zz_pE>(Vec<zz_pE>&, Vec<zz_pE>&);
     115template long operator==<zz_p>(Vec<zz_p> const&, Vec<zz_p> const&);
     116#endif
     117#endif
     118
    72119//}}}
    73120
     
    81128template OSTREAM & operator << ( OSTREAM &, const Matrix<CanonicalForm> & );
    82129template OSTREAM & operator << ( OSTREAM &, const Array<REvaluation> & );
     130//template OSTREAM & operator << ( OSTREAM &, const AFactor<CanonicalForm> & );
    83131#endif /* NOSTREAMIO */
    84132
  • factory/gengftables-conway.cc

    ree9bbe r6298d6  
    200200    // open file to write to
    201201        ostrstream fname;
    202     fname << "gftables/gftable." << p << "." << d << '\0';
     202    fname << "gftables/" << q << '\0';
    203203    char * fn = fname.str();
    204204    ofstream outfile;
  • factory/gfops.cc

    ree9bbe r6298d6  
    108108    if (gftable_dir)
    109109    {
    110       sprintf( buffer, "/gftable.%d.%d", p, n );
     110      sprintf( buffer, "gftables/%d", q);
    111111      gffilename = (char *)malloc(strlen(gftable_dir) + strlen(buffer) + 1);
    112112      STICKYASSERT(gffilename,"out of memory");
     
    118118    {
    119119#ifndef SINGULAR
    120       sprintf( buffer, GFTABLEDIR "/gftable.%d.%d", p, n );
     120      sprintf( buffer, "gftables/%d", q );
    121121      gffilename = buffer;
    122122      inputfile = fopen( buffer, "r" );
  • factory/singext.h

    ree9bbe r6298d6  
    99#include <factory/cf_gmp.h>
    1010
     11#ifdef SINGULAR
    1112#include <resources/feFopen.h>
     13#endif
    1214
    1315/*BEGINPUBLIC*/
  • factory/templates/ftmpl_afactor.cc

    ree9bbe r6298d6  
    2626{
    2727    if ( exp() == 1 )
    28         s << "(" << factor(), ", " << minpoly() << ")";
     28        s << "(" << factor() << ", " << minpoly() << ")";
    2929    else
    3030        s << "((" << factor() << ")^" << exp() << ", " << minpoly() << ")";
Note: See TracChangeset for help on using the changeset viewer.