
6 Oct
2009
6 Oct
'09
1:15 p.m.
Either way. You could even just use some other terminal type besides boost::array. std::complex or std::pair would do.
Just dropping in as I have the exact same code lying around. Using std::complex itself as the underlying type of complex terminal is actually a good idea. When you'll have to do thing like cos( z ), you may want to go cak to call std::cos on complex as on some platform it uses some intrinsic that are faster than rewriting the cosinus by yourself. Moreover std::complex isn't more than a pair of T anyway. -- ___________________________________________ Joel Falcou - Assistant Professor PARALL Team - LRI - Universite Paris Sud XI Tel : (+33)1 69 15 66 35