Complex number in OpenCL - cl_complex
Recently I've been involved in the developing of a library OpenCAL capable of parallel execution of cellular automata and finite differences models.
I though it could have been fun to render some huge fractal with it and so I ended up writing some OpenCL code for the generation of Julia sets. Unfortunately OpenCL does not provide support for complex number (CUDA does, check the following link out: CUDA complex number example) so I had to write it myself.
The following might be useful to anyone with need of support for complex number operations as exponentiation, argument, modulus etc. in OpenCL.
Here is a link to a 324 Megapixels Julia set Rendered image (warning, size >150 MB)