Project
Loading...
Searching...
No Matches
o2::gpu::SplineUtil Class Referenceabstract

#include <SplineUtil.h>

Classes

class  Switch
 class lets one to switch between constexpr int32_t ValTrueT and int32_t mValFalse, depending on the ConditionT More...
 
class  Switch< false, ValTrueT >
 
class  Switch< true, ValTrueT >
 

Public Member Functions

template<int32_t NdimT>
 GPUd () static Switch<(NdimT > 0)
 
NdimT getNdim (int32_t Ndim)
 
template<int32_t NdimT>
 GPUd () static Switch<(NdimT !=0)
 
 abs (NdimT)> getMaxNdim(int32_t Ndim)
 

Static Public Member Functions

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
 

Detailed Description

================================================================================================== Utilities for the Spline class

Definition at line 28 of file SplineUtil.h.

Member Function Documentation

◆ abs() [1/2]

static constexpr int32_t o2::gpu::SplineUtil::abs ( int32_t  v)
inlinestaticconstexpr

abs() as a constexpr method, to make the GPU compiler happy

Definition at line 63 of file SplineUtil.h.

◆ abs() [2/2]

o2::gpu::SplineUtil::abs ( NdimT  )
inline

Definition at line 87 of file SplineUtil.h.

◆ getNdim()

NdimT o2::gpu::SplineUtil::getNdim ( int32_t  Ndim)
inline

Definition at line 76 of file SplineUtil.h.

◆ getSpec() [1/2]

static constexpr int32_t o2::gpu::SplineUtil::getSpec ( int32_t  nXdim,
int32_t  nYdim 
)
inlinestaticconstexpr

Calculate a Spline specialization number depending on nXdim, nYdim

Definition at line 33 of file SplineUtil.h.

◆ getSpec() [2/2]

static constexpr int32_t o2::gpu::SplineUtil::getSpec ( int32_t  nYdim)
inlinestaticconstexpr

Spline1D & Spline2D specialization number depending on nYdim

Definition at line 57 of file SplineUtil.h.

◆ GPUd() [1/2]

template<int32_t NdimT>
o2::gpu::SplineUtil::GPUd ( )
pure virtual

An expression const auto tmp = getMaxNdim(int32_t Ndim); tmp.get(); returns either a constexpr integer abs(NdimT), or an integer Ndim, depending on the (NdimT!=0) value

◆ GPUd() [2/2]

template<int32_t NdimT>
o2::gpu::SplineUtil::GPUd ( )

An expression const auto tmp = getNdim<nDimT>(int32_t Ndim); tmp.get(); returns either a constexpr integer NdimT, or an integer Ndim, depending on the (NdimT>0) value (a temporary variable tmp is needed to make the GPU compiler happy)


The documentation for this class was generated from the following file: