31 if(std::numeric_limits<eT>::has_quiet_NaN ==
true)
33 return std::numeric_limits<eT>::quiet_NaN();
51 return eT( Math_helper::nan<T>(), Math_helper::nan<T>() );
73 if(std::numeric_limits<eT>::has_infinity ==
true)
75 return std::numeric_limits<eT>::infinity();
93 return eT( Math_helper::inf<T>(), Math_helper::inf<T>() );
112 template<
typename eT>
121 static eT
pi() {
return eT(3.1415926535897932384626433832795028841971693993751058209749445923078164062862089986280348253421170679); }
124 static eT
e() {
return eT(2.7182818284590452353602874713526624977572470936999595749669676277240766303535475945713821785251664274); }
127 static eT
euler() {
return eT(0.5772156649015328606065120900824024310421593359399235988057672348848677267776646709369470632917467495); }
130 static eT
gratio() {
return eT(1.6180339887498948482045868343656381177203091798057628621354486227052604628189024497072072041893911374); }
133 static eT
sqrt2() {
return eT(1.4142135623730950488016887242096980785696718753769480731766797379907324784621070388503875343276415727); }
136 static eT
eps() {
return std::numeric_limits<eT>::epsilon(); }
145 static eT
nan() {
return priv::Math_helper::nan<eT>(); }
148 static eT
inf() {
return priv::Math_helper::inf<eT>(); }
157 template<
typename eT>
163 static eT
m_u() {
return eT(1.660538782e-27); }
166 static eT
N_A() {
return eT(6.02214179e23); }
169 static eT
k() {
return eT(1.3806504e-23); }
172 static eT
k_evk() {
return eT(8.617343e-5); }
175 static eT
a_0() {
return eT(0.52917720859e-10); }
178 static eT
mu_B() {
return(927.400915e-26); }
181 static eT
Z_0() {
return eT(3.76730313461771e-2); }
184 static eT
G_0() {
return eT(7.7480917004e-5); }
187 static eT
k_e() {
return eT(8.9875517873681764e9); }
190 static eT
eps_0() {
return eT(8.85418781762039e-12); }
193 static eT
m_e() {
return eT(9.10938215e-31); }
196 static eT
eV() {
return eT(1.602176487e-19); }
199 static eT
e() {
return eT(1.602176487e-19); }
202 static eT
F() {
return eT(96485.3399); }
205 static eT
alpha() {
return eT(7.2973525376e-3); }
211 static eT
K_J() {
return eT(483597.891e9); }
214 static eT
mu_0() {
return eT(1.25663706143592e-06); }
217 static eT
phi_0() {
return eT(2.067833667e-15); }
220 static eT
R() {
return eT(8.314472); }
223 static eT
G() {
return eT(6.67428e-11); }
226 static eT
h() {
return eT(6.62606896e-34); }
229 static eT
h_bar() {
return eT(1.054571628e-34); }
232 static eT
m_p() {
return eT(1.672621637e-27); }
235 static eT
R_inf() {
return eT(10973731.568527); }
238 static eT
c_0() {
return eT(299792458.0); }
241 static eT
sigma() {
return eT(5.670400e-8); }
244 static eT
R_k() {
return eT(25812.807557); }
247 static eT
b() {
return eT(2.8977685e-3); }
263 template<
typename eT>
272 if(std::numeric_limits<eT>::has_infinity ==
true)
274 return -(std::numeric_limits<eT>::infinity());
283 template<
typename eT>
296 template<
typename eT>
305 if(std::numeric_limits<eT>::has_infinity ==
true)
307 return std::numeric_limits<eT>::infinity();
316 template<
typename eT>
static eT mu_B()
Bohr magneton.
static eT nan()
"not a number"
static arma_float_only< eT >::result nan(typename arma_float_only< eT >::result *junk=0)
static eT sigma()
Stefan-Boltzmann constant.
static eT G_0()
conductance quantum (in siemens)
static eT k_evk()
Boltzmann constant (in eV/K)
static eT alpha()
fine-structure constant
static arma_float_only< eT >::result inf(typename arma_float_only< eT >::result *junk=0)
static arma_integral_only< eT >::result inf(typename arma_integral_only< eT >::result *junk=0)
static arma_inline arma_hot arma_float_only< eT >::result most_neg(typename arma_float_only< eT >::result *junk=0)
static eT e()
base of the natural logarithm
static eT F()
Faraday constant (in coulombs)
arma_inline const Op< T1, op_max > max(const Base< typename T1::elem_type, T1 > &X, const uword dim=0)
Delayed 'maximum values' operation. The dimension, along which the maxima are found, is set via 'dim'. For dim = 0, the maximum value of each column is found (i.e. searches by traversing across rows). For dim = 1, the maximum value of each row is found (i.e. searches by traversing across columns). The default is dim = 0.
static eT euler()
Euler's constant, aka Euler-Mascheroni constant.
static eT mu_0()
magnetic constant (in henries per meter)
static eT e()
elementary charge (in coulombs)
static eT c_0()
speed of light in vacuum (in meters per second)
static eT Z_0()
characteristic impedance of vacuum (in ohms)
arma_inline const Op< T1, op_min > min(const Base< typename T1::elem_type, T1 > &X, const uword dim=0)
Delayed 'minimum values' operation. The dimension, along which the minima are found, is set via 'dim'. For dim = 0, the minimum value of each column is found (i.e. searches by traversing across rows). For dim = 1, the minimum value of each row is found (i.e. searches by traversing across columns). The default is dim = 0.
static eT R_k()
von Klitzing constant (in ohms)
static eT a_0()
Bohr radius (in meters)
static eT k()
Boltzmann constant (in joules per kelvin)
static eT m_e()
electron mass (in kg)
static arma_cx_only< eT >::result inf(typename arma_cx_only< eT >::result *junk=0)
static eT eps_0()
electric constant (in farads per meter)
static eT k_e()
Coulomb's constant (in meters per farad)
static eT h()
Planck constant (in joule seconds)
static eT phi_0()
magnetic flux quantum (in webers)
static eT b()
Wien wavelength displacement law constant.
#define arma_ignore(variable)
static eT gratio()
golden ratio
static eT sqrt2()
square root of 2
static arma_inline arma_hot arma_float_only< eT >::result most_pos(typename arma_float_only< eT >::result *junk=0)
static eT m_u()
atomic mass constant (in kg)
static eT log_min()
log of the minimum representable value
static eT G()
Newtonian constant of gravitation (in newton square meters per kilogram squared)
static eT eV()
electron volt (in joules)
static eT K_J()
Josephson constant.
static eT alpha_inv()
inverse fine-structure constant
static eT pi()
ratio of any circle's circumference to its diameter
arma_inline const eOp< T1, eop_log > log(const Base< typename T1::elem_type, T1 > &A)
static eT R()
molar gas constant (in joules per mole kelvin)
static arma_cx_only< eT >::result nan(typename arma_cx_only< eT >::result *junk=0)
static eT R_inf()
Rydberg constant (in reciprocal meters)
static eT h_bar()
Planck constant over 2 pi, aka reduced Planck constant (in joule seconds)
static eT N_A()
Avogadro constant.
static arma_integral_only< eT >::result nan(typename arma_integral_only< eT >::result *junk=0)
static eT log_max()
log of the maximum representable value
static eT eps()
the difference between 1 and the least value greater than 1 that is representable ...
static eT m_p()
proton mass (in kg)