How can I use "cuComplex" type?

I want to use the CUBLAS in my program. But I don`t know how “cuComplex” type can be used. Is there a built-in complex type in CUDA? If there exist it, please let me know the real and imaginay parts usage of complex type variable

Include “cuComplex.h” in your project…the header file is found in the \include folder in your CUDA toolkit.