Boost logo

Ublas :

From: Gunter Winkler (guwi17_at_[hidden])
Date: 2007-11-22 19:29:18


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