cuda_complex | An implementation of C std : :complex for CUDA devices | GPU library
kandi X-RAY | cuda_complex Summary
kandi X-RAY | cuda_complex Summary
This is an implementation of C++ std::complex for use on CUDA devices. Written by John C. Travers jtravs@gmail.com (2012).
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of cuda_complex
cuda_complex Key Features
cuda_complex Examples and Code Snippets
Community Discussions
Trending Discussions on cuda_complex
QUESTION
In my code I use arrays with complex numbers from thrust library and I would like to use cublasZgeam() in order to transpose the array.
Using complex numbers from cuComplex.h is not a preferable option since I do a lot of arithmetic on the array and cuComplex doesnt have defined operators such as * +=.
This is how I defined array which I want to transpose
...ANSWER
Answered 2017-Apr-17 at 17:07Despite your protestations to the contrary, the C++ standard library complex
(or thrust::complex
) most certainly does work with CUBLAS. The cuComplex
and cuDoubleComplex
are design to be binary compatible with standard host complex types so that data does not be translated when passed to CUBLAS functions which use complex data on the device.
A simple modification to the code you posted in comments works exactly as you might imagine:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install cuda_complex
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page