Registered Member
|
I am not able to compile it. It shows " cannot convert form ¨std::complex to real¨ in core module? What is the problem ?
|
Registered Member
|
You need to show us the program you are trying to compile, as the error may well be in there. As far as I know, there is no type 'real' in the Eigen library.
|
Registered Member
|
So I have included <Eigen/Core> module, then there is a GenericPacketMath.h file, in it, there is
template<> inline std::complex<float> pmul(const std::complex<float>& a, const std::complex<float>& b) { return std::complex<float>(real(a)*real(b) - imag(a)*imag(b), imag(a)*real(b) + real(a)*imag(b)); } template<> inline std::complex<double> pmul(const std::complex<double>& a, const std::complex<double>& b) { return std::complex<double>(real(a)*real(b) - imag(a)*imag(b), imag(a)*real(b) + real(a)*imag(b)); } So the compiler can't pass it, it shows " cannot covert from std::complex<double> to real" , |
Moderator
|
hm, you probably have a "real" type in your code (or some other header included before Eigen). What about replacing these lines by
|
Registered Member
|
Hi everyone,
I am facing a similar kind of problem like this. Has anybody solved this??. I need help with this |
Registered users: bartoloni, Bing [Bot], Google [Bot], Yahoo [Bot]