template<typename T>
-__device__ void Bisection_device(T z, T* t, int mi, int ma, int* l)
+__device__ void Bisection_device(T z, T* t, int mi,int ma,int* l)
{
int i; ma--;
while(1) {
*l = mi-1;
}
-/* Kernel to evaluates monotone spline for a sequence of query points residing in the array z of size m
-*/
+// Kernel to evaluate monotone spline for a sequence of query points
+// residing in the array z of size m
+
template<typename Tx, typename Ty>
__global__ void d_MonSplineValue(Tx* z, int K, double* t, double * alpha, double * beta, double * gamma, int T, Ty *value)
{