ESPResSo
Extensible Simulation Package for Research on Soft Matter Systems
Loading...
Searching...
No Matches
constants.hpp File Reference
#include "device_qualifier.hpp"
#include <boost/math/constants/constants.hpp>
+ Include dependency graph for constants.hpp:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  Utils
 

Macros

#define ES_OK   0
 error code if no error occurred
 
#define ES_ERROR   1
 error code if an error occurred
 

Functions

Mathematical, physical and chemical constants. <br>
template<class T = double>
DEVICE_QUALIFIER constexpr T Utils::pi ()
 Ratio of diameter and circumference of a circle.
 
template<class T = double>
DEVICE_QUALIFIER constexpr T Utils::sqrt_pi_i ()
 One over square root of pi.
 
template<class T = double>
DEVICE_QUALIFIER constexpr T Utils::gamma ()
 Euler-Mascheroni constant.
 
template<class T = double>
DEVICE_QUALIFIER constexpr T Utils::ln_2 ()
 Natural logarithm of 2.
 
template<class T = double>
DEVICE_QUALIFIER constexpr T Utils::sqrt_2 ()
 Square root of 2.
 
template<class T = double>
DEVICE_QUALIFIER constexpr T Utils::cbrt_2 ()
 Cube root of 2.
 

Macro Definition Documentation

◆ ES_ERROR

#define ES_ERROR   1

error code if an error occurred

Definition at line 80 of file constants.hpp.

◆ ES_OK

#define ES_OK   0

error code if no error occurred

Definition at line 78 of file constants.hpp.