Boost logo

Ublas :

From: Gunter Winkler (guwi17_at_[hidden])
Date: 2007-11-25 17:17:48


Tsai Dung-Bang schrieb:
> Dear all
>
> I would like to test other floating type rather than double in the
> template, so I simply changed typedef double DP in sample.cpp into
> typedef float DP, but the program could not compile now.
>
> It seems that it's a type promotion error?
>
>
--> promote_traits<double, std::complex<float> >

Mixing of float and double is not supported. You have to provide the
necessary specialization by yourself. Alternatively you can change all
constants/parameters to use the same type as the complex values.

mfg
Gunter