¡@

Home 

c++ Programming Glossary: vecptr

How to pass a C++ class with array of pointers to CUDA?

http://stackoverflow.com/questions/14790999/how-to-pass-a-c-class-with-array-of-pointers-to-cuda

this goal I wrote a simple class class vecarray public int vecptr N array of pointers pointing to array int dim N store length.. being pointed to vecarray vecarray for int i 0 i N i vecptr i NULL dim i 0 int vecarray sum int i 0 j 0 s 0 for i 0 i N.. sum int i 0 j 0 s 0 for i 0 i N i for j 0 j dim i j s vecptr i j return s Then I use this class in the following code #define..