Boost logo

Ublas :

From: Tsai Dung-Bang (dbtsai_at_[hidden])
Date: 2007-11-23 08:54:01


Hi Gunter Winkler

As your suggestion, I define

typedef typename scalar_traits<value_type>::real_type real_type_value;
if( is_complex<real_type_value>() ) std::cout << "Is complex ";

Still states that the type of real_type_value is complex.

Tsai Dung-Bang

2007/11/23, Gunter Winkler <guwi17_at_[hidden]>:
> Am Donnerstag, 22. November 2007 16:12 schrieb Tsai Dung-Bang:
> > if( value_type is complex)
> > typedef typename value_type::value_type real_value_type;
> > else
> > typedef value_type real_value_type
>
> try
>
> #include <boost/numeric/ublas/traits.hpp>
>
> typedef scalar_traits< value_type >::real_type;
>
> maybe you need complex_traits.
>
> mfg
> Gunter
>
> _______________________________________________
> ublas mailing list
> ublas_at_[hidden]
> http://lists.boost.org/mailman/listinfo.cgi/ublas
>
>
>