psim  1.0
Generalized 2D phonon transport using a Monte Carlo method
utils.h File Reference
#include <array>
#include <random>
Include dependency graph for utils.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

 Utils
 

Functions

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

Variables

constexpr double Utils::PI = 3.1415926535897932384626433832795028841971693993751058209749445923