17#ifndef ALICEO2_GPUCOMMON_TPCFASTTRANSFORMATION_SPLINEUTIL_H
18#define ALICEO2_GPUCOMMON_TPCFASTTRANSFORMATION_SPLINEUTIL_H
31 static constexpr int32_t
getSpec(int32_t nXdim, int32_t nYdim)
40 return (nYdim == 1) ? 3 : ((nXdim > 0 && nYdim > 0) ? 1 : 2);
55 static constexpr int32_t
getSpec(int32_t nYdim)
61 static constexpr int32_t
abs(int32_t
v) {
return (
v >= 0) ?
v : -
v; }
64 template <
bool ConditionT,
int32_t ValTrueT>
73 template <
int32_t NdimT>
76 return Switch<(NdimT > 0), NdimT>(Ndim);
84 template <
int32_t NdimT>
91template <
int32_t ValTrueT>
96 GPUd() static constexpr int32_t get() {
return ValTrueT; }
99template <
int32_t ValTrueT>
104 GPUd() int32_t get()
const {
return mValFalse; }
GPUd() Switch(int32_t valFalse)
GPUd() int32_t get() const
GPUd() static const expr int32_t get()
class lets one to switch between constexpr int32_t ValTrueT and int32_t mValFalse,...
GPUd() static Switch<(NdimT > 0)
NdimT getNdim(int32_t Ndim)
static constexpr int32_t getSpec(int32_t nXdim, int32_t nYdim)
static constexpr int32_t getSpec(int32_t nYdim)
static constexpr int32_t abs(int32_t v)
abs() as a constexpr method, to make the GPU compiler happy