Hydra: Utils.h File Reference (original) (raw)
#include <hydra/detail/Config.h>
#include <hydra/detail/BackendPolicy.h>
#include <hydra/Types.h>
#include <utility>
#include <ratio>
Go to the source code of this file.
Namespaces |
---|
Functions | |
---|---|
template | |
__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__ T | 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) |