I often use complex arithmetic in CUDA and I need to define my own implementations, for example, transcendental functions ( sin , cos , exp , ...) on complex numbers. I want to definitely solve the problem by writing a library of such functions in order to consider the βlargeβ number of cases and avoid being stopped at any time for new implementations.
I know that for some of them writing code may not be trivial in terms of the trade-off between accuracy and computational complexity. However, I also know that C ++ has its own sophisticated math library .
Is it possible to "rework" existing C ++ solutions for CUDA purposes?
source share