__global__ void ale_add_kinematics_kernel(const int n, T *__restrict__ wx, T *__restrict__ wy, T *__restrict__ wz, const T *__restrict__ x_ref, const T *__restrict__ y_ref, const T *__restrict__ z_ref, const T *__restrict__ phi, const T *__restrict__ x, const T *__restrict__ y, const T *__restrict__ z, const kinematics_params_t kin_params)
__global__ void makeext_kernel(T *__restrict__ abx1, T *__restrict__ aby1, T *__restrict__ abz1, T *__restrict__ abx2, T *__restrict__ aby2, T *__restrict__ abz2, T *__restrict__ bfx, T *__restrict__ bfy, T *__restrict__ bfz, const T rho, const T ab1, const T ab2, const T ab3, const int n)
__global__ void scalar_makeext_kernel(T *__restrict__ fs_lag, T *__restrict__ fs_laglag, T *__restrict__ fs, const T rho, const T ext1, const T ext2, const T ext3, const int n)