Hydra  4.0.1
A header-only templated C++ framework to perform data analysis on massively parallel platforms.
Utils.h File Reference
#include <hydra/detail/Config.h>
#include <hydra/detail/BackendPolicy.h>
#include <hydra/Types.h>
#include <utility>
#include <ratio>
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.

Data Structures

struct  hydra::detail::nearest_int< N, D >
 Round to nearest integer at compile time. More...
 

Namespaces

 hydra
 Generic policies definition.
 
 hydra::detail
 

Enumerations

enum  hydra::Wave {
  hydra::SWave =0, hydra::PWave, hydra::DWave, hydra::FWave,
  hydra::GWave, hydra::HWave
}
 Orbital angular momentum tags. More...
 

Functions

template<typename T >
__hydra_host__ __hydra_device__ int hydra::nint (const T x)
 Round to nearest integer. More...
 
__hydra_host__ __hydra_device__ double hydra::pmf (const double mother_mass, const double daughter1_mass, const double daughter2_mass)
 Momentum in mother frame of daughter particle in two-body-decay. More...
 
template<typename T , unsigned int N>
__hydra_host__ __hydra_device__hydra::pow (T x)
 Power with integer exponent. More...
 
template<typename T , unsigned int N, unsigned int I>
__hydra_host__ __hydra_device__ std::enable_if< I==N, void >::type hydra::detail::pow_helper (T const, T &)
 
template<typename T , unsigned int N, unsigned int I>
__hydra_host__ __hydra_device__ std::enable_if<(I< N), void >::type hydra::detail::pow_helper (T const x, T &r)