type.hpp
Go to the documentation of this file.00001 #ifndef boost_numeric_bindings_type_hpp
00002 #define boost_numeric_bindings_type_hpp
00003
00004
00005
00006
00007 #include <complex>
00008
00009 namespace boost { namespace numeric { namespace bindings { namespace traits {
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019 #ifndef BOOST_NUMERIC_BINDINGS_USE_CUSTOM_COMPLEX_TYPE
00020 typedef std::complex< float > complex_f ;
00021 typedef std::complex< double > complex_d ;
00022 #endif
00023
00024 template <typename T>
00025 T real (std::complex<T> const& c) { return std::real (c); }
00026 template <typename T>
00027 T imag (std::complex<T> const& c) { return std::imag (c); }
00028
00029 }}}}
00030
00031 #endif // boost_numeric_bindings_type_hpp