uniform_kernel_cpp function

c++ uniform kernel