1 #ifndef __MAQUIS_TYPES_TRAITS_HPP__
2 #define __MAQUIS_TYPES_TRAITS_HPP__
4 #include <alps/numeric/matrix/matrix_traits.hpp>
6 namespace maquis {
namespace traits {
8 template<
class T>
struct scalar_type {
typedef typename T::value_type
type; };
11 template<
class T>
struct real_type<std::complex<T> > {
typedef T
type; };
14 template<
class T>
struct real_identity<std::complex<T> > {
static const std::complex<T>
value; };
15 template<
class T>
struct imag_identity<std::complex<T> > {
static const std::complex<T>
value; };
static const std::complex< T > value
real_type< typename T::value_type >::type type
static const std::complex< T > value