Namespace utils
Public Functions
Type | Name |
---|---|
__host__ __device__ const T & | max (const T & a, const T & b) Generic max function. |
template __host__ __device__ const double & | max< double > (const double & a, const double & b) |
template __host__ __device__ const float & | max< float > (const float & a, const float & b) |
template __host__ __device__ const int & | max< int > (const int & a, const int & b) |
__host__ __device__ const T & | min (const T & a, const T & b) Generic min function. |
template __host__ __device__ const double & | min< double > (const double & a, const double & b) |
template __host__ __device__ const float & | min< float > (const float & a, const float & b) |
template __host__ __device__ const int & | min< int > (const int & a, const int & b) |
__host__ __device__ const T & | nearest (const T & a, const T & b, const T & c) Generic nearest value function to a given value c. |
__host__ __device__ const T & | nearest (const T & a, const T & b) Generic nearest value function to 0.0 between 2 parameter. |
template __host__ __device__ const double & | nearest< double > (const double & a, const double & b, const double & c) |
template __host__ __device__ const double & | nearest< double > (const double & a, const double & b) |
template __host__ __device__ const float & | nearest< float > (const float & a, const float & b, const float & c) |
template __host__ __device__ const float & | nearest< float > (const float & a, const float & b) |
template __host__ __device__ const int & | nearest< int > (const int & a, const int & b, const int & c) |
template __host__ __device__ const int & | nearest< int > (const int & a, const int & b) |
__host__ __device__ T | sq (T a) Generic squaring function. |
template double __host__ __device__ | sq< double > (double a) |
template float __host__ __device__ | sq< float > (float a) |
template int __host__ __device__ | sq< int > (int a) |
Public Functions Documentation
function max
Generic max function.
!
function max< double >
template __host__ __device__ const double & utils::max< double > (
const double & a,
const double & b
)
function max< float >
function max< int >
function min
Generic min function.
!
function min< double >
template __host__ __device__ const double & utils::min< double > (
const double & a,
const double & b
)
function min< float >
function min< int >
function nearest
Generic nearest value function to a given value c.
template<class T>
__host__ __device__ const T & utils::nearest (
const T & a,
const T & b,
const T & c
)
!
function nearest
Generic nearest value function to 0.0 between 2 parameter.
function nearest< double >
template __host__ __device__ const double & utils::nearest< double > (
const double & a,
const double & b,
const double & c
)
function nearest< double >
template __host__ __device__ const double & utils::nearest< double > (
const double & a,
const double & b
)
function nearest< float >
template __host__ __device__ const float & utils::nearest< float > (
const float & a,
const float & b,
const float & c
)
function nearest< float >
template __host__ __device__ const float & utils::nearest< float > (
const float & a,
const float & b
)
function nearest< int >
template __host__ __device__ const int & utils::nearest< int > (
const int & a,
const int & b,
const int & c
)
function nearest< int >
function sq
Generic squaring function.
!
function sq< double >
function sq< float >
function sq< int >
The documentation for this class was generated from the following file src/Util_CPU.cu