title: Complex arithmetics in CUDA
body: <p>I frequently use complex arithmetics in CUDA and need to define my own implementations of, for example, transcendental functions (<code>sin</code>, <code>cos</code>, <code>exp</code>, ...) on complex numbers. I want now to definitely solve the problem by writing a library of such functions so to consider a "large" number of cases and avoiding being pit-stopped any time for new implementations.</p>
  
  <p>I'm aware that for some of them, code writing could be non-trivial from the point of view of trade-off between accuracy and computational complexity. Nevertheless, I'm also aware that C++ has its own <a href="http://www.softwarepreservation.org/projects/c_plus_plus/cfront/release_e/doc/ComplexArithmetic.pdf" rel="nofollow">complex math library</a>.</p>
  
  <p>Is there any possibility to "recycle" already existing C++ solutions for CUDA purposes?</p>