Skip to content

Namespace utils

Namespace List > 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.

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

!


function max< double >

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

function max< float >

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

function max< int >

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

function min

Generic min function.

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

!


function min< double >

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

function min< float >

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

function min< int >

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

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.

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

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 >

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

function sq

Generic squaring function.

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

!


function sq< double >

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

function sq< float >

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

function sq< int >

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


The documentation for this class was generated from the following file src/Util_CPU.cu