17#ifndef ALICEO2_GPUCOMMON_TPCFASTTRANSFORMATION_SPLINEUTIL_H
18#define ALICEO2_GPUCOMMON_TPCFASTTRANSFORMATION_SPLINEUTIL_H
33 static constexpr int32_t
getSpec(int32_t nXdim, int32_t nYdim)
42 return (nYdim == 1) ? 3 : ((nXdim > 0 && nYdim > 0) ? 1 : 2);
57 static constexpr int32_t
getSpec(int32_t nYdim)
63 static constexpr int32_t
abs(int32_t
v) {
return (
v >= 0) ?
v : -
v; }
66 template <
bool ConditionT,
int32_t ValTrueT>
75 template <
int32_t NdimT>
78 return Switch<(NdimT > 0), NdimT>(Ndim);
86 template <
int32_t NdimT>
93template <
int32_t ValTrueT>
98 GPUd() static constexpr int32_t get() {
return ValTrueT; }
101template <
int32_t ValTrueT>
106 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
a couple of static helper functions to create timestamp values for CCDB queries or override obsolete ...