Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2026-04-09 07:49:23

0001 // name=tcomplex_test ; gcc $name.cc -g -std=c++11 -I.. -I/usr/local/cuda/include  -lstdc++ -o /tmp/$name && /tmp/$name
0002 
0003 #include "tcomplex.h"
0004 
0005 int main()
0006 {
0007     cuFloatComplex a = tcomplex::make_cuFloatComplex_polar( 0.f, 0.f ); 
0008     cuFloatComplex b = tcomplex::cuSqrtf(a); 
0009 
0010     std::cout << " a " << a << " b " << b << std::endl ; 
0011 
0012     return 0 ; 
0013 }
0014