psim  1.0
Generalized 2D phonon transport using a Monte Carlo method
Utils Namespace Reference

Functions

double urand () noexcept
 
template<typename E >
constexpr auto toInteger (E enumerator) noexcept
 
template<typename In1 , typename In2 , typename Out >
void zip (In1 begin1, In2 end1, In2 begin2, In2 end2, Out result)
 
template<typename T , typename U >
std::vector< std::pair< T, U > > zip (const std::vector< T > &r1, const std::vector< U > r2)
 
template<typename T , typename U , std::size_t V>
std::array< std::pair< T, U >, V > zip (const std::array< T, V > &r1, const std::array< U, V > &r2)
 

Variables

constexpr double PI = 3.1415926535897932384626433832795028841971693993751058209749445923
 

Function Documentation

◆ toInteger()

template<typename E >
constexpr auto Utils::toInteger ( enumerator)
constexprnoexcept

◆ urand()

double Utils::urand ( )
inlinenoexcept
Here is the caller graph for this function:

◆ zip() [1/3]

template<typename T , typename U , std::size_t V>
std::array<std::pair<T, U>, V> Utils::zip ( const std::array< T, V > &  r1,
const std::array< U, V > &  r2 
)

◆ zip() [2/3]

template<typename T , typename U >
std::vector<std::pair<T, U> > Utils::zip ( const std::vector< T > &  r1,
const std::vector< U >  r2 
)
Here is the call graph for this function:

◆ zip() [3/3]

template<typename In1 , typename In2 , typename Out >
void Utils::zip ( In1  begin1,
In2  end1,
In2  begin2,
In2  end2,
Out  result 
)
Here is the caller graph for this function:

Variable Documentation

◆ PI

constexpr double Utils::PI = 3.1415926535897932384626433832795028841971693993751058209749445923
inlineconstexpr