synaps/arithm/AlgClos.h

00001 /*********************************************************************
00002 *      This file is part of the source code of SYNAPS kernel.        *
00003 *   Author(s): B. Mourrain, GALAAD, INRIA                            *
00004 **********************************************************************
00005 History:
00006 $Id: AlgClos.h,v 1.1 2005/07/11 10:39:47 mourrain Exp $
00007 **********************************************************************/
00008 #ifndef SYNAPS_ARITHM_ALGCLOS_H
00009 #define SYNAPS_ARITHM_ALGCLOS_H
00010 
00011 #include <synaps/init.h>
00012 
00013 namespace std
00014 {
00015   template<class C> struct complex;
00016 }
00017 
00018 __BEGIN_NAMESPACE_SYNAPS
00019 
00029 template <class T> struct AlgClos {
00030   typedef std::complex<T> TYPE;
00031 };
00032 
00033 template<class T> struct AlgClos<std::complex<T> > {
00034   typedef std::complex<T> TYPE;
00035 };
00036 
00037 __END_NAMESPACE_SYNAPS
00038 #endif // SYNAPS_ARITHM_ALGCLOS_H

SYNAPS DOCUMENTATION
logo