BG_Flood  0.8
Documentation (Work-in-progress)
utils Namespace Reference

Functions

template<class T >
__host__ __device__ T sq (T a)
 
template<class T >
__host__ __device__ const T & max (const T &a, const T &b)
 
template<class T >
__host__ __device__ const T & min (const T &a, const T &b)
 
template<class T >
__host__ __device__ const T & nearest (const T &a, const T &b, const T &c)
 
template<class T >
__host__ __device__ const T & nearest (const T &a, const T &b)
 
template __host__ __device__ const int & min< int > (const int &a, const int &b)
 
template __host__ __device__ const float & min< float > (const float &a, const float &b)
 
template __host__ __device__ const double & min< double > (const double &a, const double &b)
 
template __host__ __device__ const int & max< int > (const int &a, const int &b)
 
template __host__ __device__ const float & max< float > (const float &a, const float &b)
 
template __host__ __device__ const double & max< double > (const double &a, const double &b)
 
template int __host__ __device__ sq< int > (int a)
 
template float __host__ __device__ sq< float > (float a)
 
template double __host__ __device__ sq< double > (double a)
 
template __host__ __device__ const int & nearest< int > (const int &a, const int &b, const int &c)
 
template __host__ __device__ const float & nearest< float > (const float &a, const float &b, const float &c)
 
template __host__ __device__ const double & nearest< double > (const double &a, const double &b, const double &c)
 
template __host__ __device__ const int & nearest< int > (const int &a, const int &b)
 
template __host__ __device__ const float & nearest< float > (const float &a, const float &b)
 
template __host__ __device__ const double & nearest< double > (const double &a, const double &b)
 

Function Documentation

◆ max()

template<class T >
__host__ __device__ const T & utils::max ( const T &  a,
const T &  b 
)

Generic max function

◆ max< double >()

template __host__ __device__ const double& utils::max< double > ( const double &  a,
const double &  b 
)

◆ max< float >()

template __host__ __device__ const float& utils::max< float > ( const float &  a,
const float &  b 
)

◆ max< int >()

template __host__ __device__ const int& utils::max< int > ( const int &  a,
const int &  b 
)

◆ min()

template<class T >
__host__ __device__ const T & utils::min ( const T &  a,
const T &  b 
)

Generic min function

◆ min< double >()

template __host__ __device__ const double& utils::min< double > ( const double &  a,
const double &  b 
)

◆ min< float >()

template __host__ __device__ const float& utils::min< float > ( const float &  a,
const float &  b 
)

◆ min< int >()

template __host__ __device__ const int& utils::min< int > ( const int &  a,
const int &  b 
)

◆ nearest() [1/2]

template<class T >
__host__ __device__ const T & utils::nearest ( const T &  a,
const T &  b 
)

◆ nearest() [2/2]

template<class T >
__host__ __device__ const T & utils::nearest ( const T &  a,
const T &  b,
const T &  c 
)

Generic nearest value function with 3 parameter

◆ nearest< double >() [1/2]

template __host__ __device__ const double& utils::nearest< double > ( const double &  a,
const double &  b 
)

◆ nearest< double >() [2/2]

template __host__ __device__ const double& utils::nearest< double > ( const double &  a,
const double &  b,
const double &  c 
)

◆ nearest< float >() [1/2]

template __host__ __device__ const float& utils::nearest< float > ( const float &  a,
const float &  b 
)

◆ nearest< float >() [2/2]

template __host__ __device__ const float& utils::nearest< float > ( const float &  a,
const float &  b,
const float &  c 
)

◆ nearest< int >() [1/2]

template __host__ __device__ const int& utils::nearest< int > ( const int &  a,
const int &  b 
)

◆ nearest< int >() [2/2]

template __host__ __device__ const int& utils::nearest< int > ( const int &  a,
const int &  b,
const int &  c 
)

◆ sq()

template<class T >
__host__ __device__ T utils::sq ( a)

Generic squaring function

◆ sq< double >()

template double __host__ __device__ utils::sq< double > ( double  a)

◆ sq< float >()

template float __host__ __device__ utils::sq< float > ( float  a)

◆ sq< int >()

template int __host__ __device__ utils::sq< int > ( int  a)