OpenFPM_pdata  4.1.0
Project that contain the implementation of distributed structures
 
Loading...
Searching...
No Matches
cub::DipatchHistogram< NUM_CHANNELS, NUM_ACTIVE_CHANNELS, SampleIteratorT, CounterT, LevelT, OffsetT >::ScaleTransform Struct Reference

Detailed Description

template<int NUM_CHANNELS, int NUM_ACTIVE_CHANNELS, typename SampleIteratorT, typename CounterT, typename LevelT, typename OffsetT>
struct cub::DipatchHistogram< NUM_CHANNELS, NUM_ACTIVE_CHANNELS, SampleIteratorT, CounterT, LevelT, OffsetT >::ScaleTransform

Definition at line 235 of file dispatch_histogram.cuh.

Public Member Functions

template<typename _LevelT >
__host__ __device__ __forceinline__ void Init (int num_output_levels, _LevelT max, _LevelT min, _LevelT scale)
 
__host__ __device__ __forceinline__ void Init (int num_output_levels, float max, float min, float scale)
 
__host__ __device__ __forceinline__ void Init (int num_output_levels, double max, double min, double scale)
 
template<CacheLoadModifier LOAD_MODIFIER, typename _SampleT >
__host__ __device__ __forceinline__ void BinSelect (_SampleT sample, int &bin, bool valid)
 
template<CacheLoadModifier LOAD_MODIFIER>
__host__ __device__ __forceinline__ void BinSelect (float sample, int &bin, bool valid)
 
template<CacheLoadModifier LOAD_MODIFIER>
__host__ __device__ __forceinline__ void BinSelect (double sample, int &bin, bool valid)
 

Data Fields

int num_bins
 
LevelT max
 
LevelT min
 
LevelT scale
 

Member Function Documentation

◆ BinSelect() [1/3]

template<int NUM_CHANNELS, int NUM_ACTIVE_CHANNELS, typename SampleIteratorT , typename CounterT , typename LevelT , typename OffsetT >
template<CacheLoadModifier LOAD_MODIFIER, typename _SampleT >
__host__ __device__ __forceinline__ void cub::DipatchHistogram< NUM_CHANNELS, NUM_ACTIVE_CHANNELS, SampleIteratorT, CounterT, LevelT, OffsetT >::ScaleTransform::BinSelect ( _SampleT  sample,
int bin,
bool  valid 
)
inline

Definition at line 284 of file dispatch_histogram.cuh.

◆ BinSelect() [2/3]

template<int NUM_CHANNELS, int NUM_ACTIVE_CHANNELS, typename SampleIteratorT , typename CounterT , typename LevelT , typename OffsetT >
template<CacheLoadModifier LOAD_MODIFIER>
__host__ __device__ __forceinline__ void cub::DipatchHistogram< NUM_CHANNELS, NUM_ACTIVE_CHANNELS, SampleIteratorT, CounterT, LevelT, OffsetT >::ScaleTransform::BinSelect ( double  sample,
int bin,
bool  valid 
)
inline

Definition at line 304 of file dispatch_histogram.cuh.

◆ BinSelect() [3/3]

template<int NUM_CHANNELS, int NUM_ACTIVE_CHANNELS, typename SampleIteratorT , typename CounterT , typename LevelT , typename OffsetT >
template<CacheLoadModifier LOAD_MODIFIER>
__host__ __device__ __forceinline__ void cub::DipatchHistogram< NUM_CHANNELS, NUM_ACTIVE_CHANNELS, SampleIteratorT, CounterT, LevelT, OffsetT >::ScaleTransform::BinSelect ( float  sample,
int bin,
bool  valid 
)
inline

Definition at line 294 of file dispatch_histogram.cuh.

◆ Init() [1/3]

template<int NUM_CHANNELS, int NUM_ACTIVE_CHANNELS, typename SampleIteratorT , typename CounterT , typename LevelT , typename OffsetT >
template<typename _LevelT >
__host__ __device__ __forceinline__ void cub::DipatchHistogram< NUM_CHANNELS, NUM_ACTIVE_CHANNELS, SampleIteratorT, CounterT, LevelT, OffsetT >::ScaleTransform::Init ( int  num_output_levels,
_LevelT  max,
_LevelT  min,
_LevelT  scale 
)
inline

Definition at line 244 of file dispatch_histogram.cuh.

◆ Init() [2/3]

template<int NUM_CHANNELS, int NUM_ACTIVE_CHANNELS, typename SampleIteratorT , typename CounterT , typename LevelT , typename OffsetT >
__host__ __device__ __forceinline__ void cub::DipatchHistogram< NUM_CHANNELS, NUM_ACTIVE_CHANNELS, SampleIteratorT, CounterT, LevelT, OffsetT >::ScaleTransform::Init ( int  num_output_levels,
double  max,
double  min,
double  scale 
)
inline

Definition at line 270 of file dispatch_histogram.cuh.

◆ Init() [3/3]

template<int NUM_CHANNELS, int NUM_ACTIVE_CHANNELS, typename SampleIteratorT , typename CounterT , typename LevelT , typename OffsetT >
__host__ __device__ __forceinline__ void cub::DipatchHistogram< NUM_CHANNELS, NUM_ACTIVE_CHANNELS, SampleIteratorT, CounterT, LevelT, OffsetT >::ScaleTransform::Init ( int  num_output_levels,
float  max,
float  min,
float  scale 
)
inline

Definition at line 257 of file dispatch_histogram.cuh.

Field Documentation

◆ max

template<int NUM_CHANNELS, int NUM_ACTIVE_CHANNELS, typename SampleIteratorT , typename CounterT , typename LevelT , typename OffsetT >
LevelT cub::DipatchHistogram< NUM_CHANNELS, NUM_ACTIVE_CHANNELS, SampleIteratorT, CounterT, LevelT, OffsetT >::ScaleTransform::max

Definition at line 238 of file dispatch_histogram.cuh.

◆ min

template<int NUM_CHANNELS, int NUM_ACTIVE_CHANNELS, typename SampleIteratorT , typename CounterT , typename LevelT , typename OffsetT >
LevelT cub::DipatchHistogram< NUM_CHANNELS, NUM_ACTIVE_CHANNELS, SampleIteratorT, CounterT, LevelT, OffsetT >::ScaleTransform::min

Definition at line 239 of file dispatch_histogram.cuh.

◆ num_bins

template<int NUM_CHANNELS, int NUM_ACTIVE_CHANNELS, typename SampleIteratorT , typename CounterT , typename LevelT , typename OffsetT >
int cub::DipatchHistogram< NUM_CHANNELS, NUM_ACTIVE_CHANNELS, SampleIteratorT, CounterT, LevelT, OffsetT >::ScaleTransform::num_bins

Definition at line 237 of file dispatch_histogram.cuh.

◆ scale

template<int NUM_CHANNELS, int NUM_ACTIVE_CHANNELS, typename SampleIteratorT , typename CounterT , typename LevelT , typename OffsetT >
LevelT cub::DipatchHistogram< NUM_CHANNELS, NUM_ACTIVE_CHANNELS, SampleIteratorT, CounterT, LevelT, OffsetT >::ScaleTransform::scale

Definition at line 240 of file dispatch_histogram.cuh.


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