Optimized Belief Propagation (CPU and GPU)
util_functs Namespace Reference

Namespace with utility functions for implementation. More...

Functions

template<RunData_t T, RunData_t U>
ARCHITECTURE_ADDITIONConvertValToDifferentDataTypeIfNeeded (T data)
 T is input type, U is output type. More...
 
template<RunData_t T>
ARCHITECTURE_ADDITIONZeroVal ()
 
template<typename T >
requires std::is_arithmetic_v< T > ARCHITECTURE_ADDITIONGetMin (T val1, T val2)
 
template<typename T >
requires std::is_arithmetic_v< T > ARCHITECTURE_ADDITIONGetMax (T val1, T val2)
 

Detailed Description

Namespace with utility functions for implementation.

Function Documentation

◆ ConvertValToDifferentDataTypeIfNeeded()

template<RunData_t T, RunData_t U>
ARCHITECTURE_ADDITION U util_functs::ConvertValToDifferentDataTypeIfNeeded ( data)
inline

T is input type, U is output type.

Template Parameters
T
U
Parameters
data

Definition at line 54 of file UtilityFuncts.h.

◆ GetMax()

template<typename T >
requires std::is_arithmetic_v<T> ARCHITECTURE_ADDITION T util_functs::GetMax ( val1,
val2 
)
inline

Definition at line 71 of file UtilityFuncts.h.

Here is the caller graph for this function:

◆ GetMin()

template<typename T >
requires std::is_arithmetic_v<T> ARCHITECTURE_ADDITION T util_functs::GetMin ( val1,
val2 
)
inline

Definition at line 65 of file UtilityFuncts.h.

Here is the caller graph for this function:

◆ ZeroVal()

template<RunData_t T>
ARCHITECTURE_ADDITION T util_functs::ZeroVal ( )
inline

Definition at line 59 of file UtilityFuncts.h.