Changeset 2984

Show
Ignore:
Timestamp:
07/02/08 06:31:46 (5 months ago)
Author:
dumas
Message:

added #if have NTL

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/linbox/examples/smith.C

    r2570 r2984  
    3939#include "linbox/field/unparametric.h" 
    4040#include "linbox/field/local2_32.h" 
    41 #include "linbox/field/ntl-ZZ.h" 
    4241//#include "linbox/field/PIR-modular-int32.h" 
    4342//#include "linbox/algorithms/2local-smith.h" 
     
    5150 
    5251using namespace LinBox; 
    53 #ifndef BIG 
     52 
     53#if __LINBOX_HAVE_NTL 
     54#include "linbox/field/ntl-ZZ.h" 
     55#include "linbox/field/PIR-ntl-ZZ_p.h" 
     56typedef PIR_ntl_ZZ_p PIR; 
     57#else 
     58// #ifndef BIG 
    5459#include "linbox/field/PIR-modular-int32.h" 
    5560typedef PIRModular<LinBox::int32> PIR; 
    56 #else 
    57 #include "linbox/field/PIR-ntl-ZZ_p.h" 
    58 typedef PIR_ntl_ZZ_p PIR; 
    5961#endif 
    60  
    6162 
    6263 
     
    100101        if (algo == "adaptive") 
    101102        {    
     103#if __LINBOX_HAVE_NTL 
    102104                typedef NTL_ZZ Ints; 
    103105                Ints Z; 
     
    119121 
    120122            cout << "T" << n << "adaptive" << m << " := "; 
     123#else 
     124            cerr << "Sorry NTL required for adaptive smith form" << std::endl; 
     125#endif 
    121126 
    122127        }