mathematical functions and classes for CUDA