Elements
6.2
A C++ base framework for the Euclid Software.
|
Functions | |
template<typename T > | |
ELEMENTS_API T | roundToDigits (const T &value, const std::size_t &max_digits) |
template ELEMENTS_API double | roundToDigits< double > (const double &value, const std::size_t &max_digits) |
template ELEMENTS_API float | roundToDigits< float > (const float &value, const std::size_t &max_digits) |
template<std::size_t max_digits, typename T > | |
ELEMENTS_API T | storageConvert (const T &size, StorageType source_unit, StorageType target_unit) |
template<typename T > | |
ELEMENTS_API T | storageConvert (const T &size, StorageType source_unit, StorageType target_unit) |
template ELEMENTS_API double | storageConvert< double > (const double &size, StorageType source_unit, StorageType target_unit) |
template ELEMENTS_API float | storageConvert< float > (const float &size, StorageType source_unit, StorageType target_unit) |
template ELEMENTS_API std::int64_t | storageConvert< std::int64_t > (const std::int64_t &size, StorageType source_unit, StorageType target_unit) |
template int64_t | storageConvert< int64_t > (const int64_t &size, StorageType source_unit, StorageType target_unit) |
Variables | |
constexpr double | pi = 3.14159265358979323846 |
\(\pi\) More... | |
constexpr double | twopi = 2.0 * pi |
\(2\pi\) More... | |
constexpr double | halfpi = pi / 2.0 |
\(\pi/2\) More... | |
constexpr double | pi2 = pi * pi |
\(\pi^2\) More... | |
constexpr double | sqrt_of_pi = 1.77245385090551602730 |
\(\sqrt{\pi}\) More... | |
constexpr double | sqrt_of_two = 1.41421356237309504880 |
\(\sqrt{2}\) More... | |
constexpr double | sqrt_of_halfpi = 1.25331413731550025121 |
\(\sqrt{\frac{\pi}{2}}\) More... | |
constexpr double | gamma = 0.57721566490153286061 |
The Euler-Mascheroni \(\gamma\) constant. More... | |
constexpr double | e = 2.71828182845904523536 |
The base of the natural logarithm \(e\). More... | |
constexpr double | Avogadro = 6.0221367e+23 / mole |
\(N_A\) More... | |
constexpr double | c_light = 2.99792458e+8 * m / s |
\(c\) More... | |
constexpr double | c_squared = c_light * c_light |
\(c^2\) More... | |
constexpr double | h_Planck = 6.62606957e-34 * joule * s |
\( h \) More... | |
constexpr double | hbar_Planck = h_Planck / twopi |
\( \hbar=h/2\pi\) More... | |
constexpr double | hbarc = hbar_Planck * c_light |
\( \hbar c\) More... | |
constexpr double | hbarc_squared = hbarc * hbarc |
\( (\hbar c)^2\) More... | |
constexpr double | electron_charge = -eplus |
\( -e \) More... | |
constexpr double | e_squared = eplus * eplus |
\( e^2 \) More... | |
constexpr double | electron_mass = 9.10938291e-31 * kg |
\( m_e \) More... | |
constexpr double | proton_mass = 1.672621777e-27 * kg |
\( m_p \) More... | |
constexpr double | amu = 1.660538921e-27 * kg |
constexpr double | mu0 = 4 * pi * 1.e-7 * henry / m |
permeability of free space \(\mu_0\) More... | |
constexpr double | epsilon0 = 1. / (c_squared * mu0) |
permeability of free space \(\epsilon_0=1/(c^2\mu_0)\) More... | |
constexpr double | elm_coupling = e_squared / (4 * pi * epsilon0) |
constexpr double | fine_structure_const = elm_coupling / hbarc |
\( \alpha=e^2/(4\pi\epsilon_0\hbar c)\) More... | |
constexpr double | k_Boltzmann = 1.3806488e-23 * joule / kelvin |
constexpr double | STP_Temperature = 273.15 * kelvin |
Standard Temperature and Pressure. More... | |
constexpr double | STP_Pressure = 1. * atmosphere |
constexpr double | kGasThreshold = 10. * mg / cm3 |
constexpr double | universe_mean_density = 1.e-25 * g / cm3 |
ELEMENTS_API std::map< StorageType, std::string > | StorageShortName |
ELEMENTS_API std::map< StorageType, std::int64_t > | StorageFactor |
constexpr double | meter = 1.0 |
constexpr double | meter2 = meter * meter |
constexpr double | meter3 = meter * meter * meter |
constexpr double | millimeter = 1.e-3 * meter |
constexpr double | millimeter2 = millimeter * millimeter |
constexpr double | millimeter3 = millimeter * millimeter * millimeter |
constexpr double | centimeter = 1.e-2 * meter |
constexpr double | centimeter2 = centimeter * centimeter |
constexpr double | centimeter3 = centimeter * centimeter * centimeter |
constexpr double | kilometer = 1000. * meter |
constexpr double | kilometer2 = kilometer * kilometer |
constexpr double | kilometer3 = kilometer * kilometer * kilometer |
constexpr double | parsec = 3.0856775807e+16 * meter |
constexpr double | micrometer = 1.e-6 * meter |
constexpr double | nanometer = 1.e-9 * meter |
constexpr double | angstrom = 1.e-10 * meter |
constexpr double | fermi = 1.e-15 * meter |
constexpr double | barn = 1.e-28 * meter2 |
constexpr double | millibarn = 1.e-3 * barn |
constexpr double | microbarn = 1.e-6 * barn |
constexpr double | nanobarn = 1.e-9 * barn |
constexpr double | picobarn = 1.e-12 * barn |
constexpr double | nm = nanometer |
constexpr double | um = micrometer |
constexpr double | mm = millimeter |
constexpr double | mm2 = millimeter2 |
constexpr double | mm3 = millimeter3 |
constexpr double | cm = centimeter |
constexpr double | cm2 = centimeter2 |
constexpr double | cm3 = centimeter3 |
constexpr double | m = meter |
constexpr double | m2 = meter2 |
constexpr double | m3 = meter3 |
constexpr double | km = kilometer |
constexpr double | km2 = kilometer2 |
constexpr double | km3 = kilometer3 |
constexpr double | pc = parsec |
constexpr double | radian = 1. |
constexpr double | milliradian = 1.e-3 * radian |
constexpr double | degree = (pi / 180.0) * radian |
constexpr double | steradian = 1. |
constexpr double | rad = radian |
constexpr double | mrad = milliradian |
constexpr double | sr = steradian |
constexpr double | deg = degree |
constexpr double | second = 1. |
constexpr double | nanosecond = 1.e-9 * second |
constexpr double | millisecond = 1.e-3 * second |
constexpr double | microsecond = 1.e-6 * second |
constexpr double | picosecond = 1.e-12 * second |
constexpr double | femtosecond = 1.e-15 * second |
constexpr double | hertz = 1. / second |
constexpr double | kilohertz = 1.e+3 * hertz |
constexpr double | megahertz = 1.e+6 * hertz |
constexpr double | ns = nanosecond |
constexpr double | s = second |
constexpr double | ms = millisecond |
constexpr double | ampere = 1.0 |
constexpr double | milliampere = 1.e-3 * ampere |
constexpr double | microampere = 1.e-6 * ampere |
constexpr double | nanoampere = 1.e-9 * ampere |
constexpr double | coulomb = ampere * second |
constexpr double | eplus = 1. |
constexpr double | e_SI = 1.602176565e-19 * coulomb |
constexpr double | kilogram = 1.0 |
constexpr double | gram = 1.e-3 * kilogram |
constexpr double | milligram = 1.e-3 * gram |
constexpr double | kg = kilogram |
constexpr double | g = gram |
constexpr double | mg = milligram |
constexpr double | joule = kilogram * (meter * meter) / (second * second) |
constexpr double | electronvolt = joule * e_SI |
constexpr double | megaelectronvolt = 1.e+6 * electronvolt |
constexpr double | kiloelectronvolt = 1.e+3 * electronvolt |
constexpr double | gigaelectronvolt = 1.e+9 * electronvolt |
constexpr double | teraelectronvolt = 1.e+12 * electronvolt |
constexpr double | petaelectronvolt = 1.e+15 * electronvolt |
constexpr double | erg = 1.e-7 * joule |
constexpr double | MeV = megaelectronvolt |
constexpr double | eV = electronvolt |
constexpr double | keV = kiloelectronvolt |
constexpr double | GeV = gigaelectronvolt |
constexpr double | TeV = teraelectronvolt |
constexpr double | PeV = petaelectronvolt |
constexpr double | watt = joule / second |
constexpr double | newton = joule / meter |
constexpr double | Pa = newton / m2 |
constexpr double | bar = 100000 * Pa |
constexpr double | atmosphere = 101325 * Pa |
constexpr double | volt = electronvolt / eplus |
constexpr double | megavolt = 1.e+6 * volt |
constexpr double | kilovolt = 1.e+3 * volt |
constexpr double | ohm = volt / ampere |
constexpr double | farad = coulomb / volt |
constexpr double | millifarad = 1.e-3 * farad |
constexpr double | microfarad = 1.e-6 * farad |
constexpr double | nanofarad = 1.e-9 * farad |
constexpr double | picofarad = 1.e-12 * farad |
constexpr double | weber = volt * second |
constexpr double | tesla = volt * second / meter2 |
constexpr double | gauss = 1.e-4 * tesla |
constexpr double | kilogauss = 1.e-1 * tesla |
constexpr double | henry = weber / ampere |
constexpr double | kelvin = 1. |
constexpr double | mole = 1. |
constexpr double | becquerel = 1. / second |
constexpr double | curie = 3.7e+10 * becquerel |
constexpr double | gray = joule / kilogram |
constexpr double | candela = 1. |
constexpr double | lumen = candela * steradian |
constexpr double | jansky = 1.e-26 * watt / (m2 * hertz) |
constexpr double | microjansky = 1.e-6 * jansky |
constexpr double | lux = lumen / meter2 |
constexpr double | perCent = 0.01 |
constexpr double | perThousand = 0.001 |
constexpr double | perMillion = 0.000001 |
|
strong |
ELEMENTS_API T Elements::Kernel::Units::roundToDigits | ( | const T & | value, |
const std::size_t & | max_digits | ||
) |
template double Elements::Kernel::Units::roundToDigits< double > | ( | const double & | value, |
const std::size_t & | max_digits | ||
) |
template float Elements::Kernel::Units::roundToDigits< float > | ( | const float & | value, |
const std::size_t & | max_digits | ||
) |
ELEMENTS_API T Elements::Kernel::Units::storageConvert | ( | const T & | size, |
StorageType | source_unit, | ||
StorageType | target_unit | ||
) |
ELEMENTS_API T Elements::Kernel::Units::storageConvert | ( | const T & | size, |
StorageType | source_unit, | ||
StorageType | target_unit | ||
) |
template double Elements::Kernel::Units::storageConvert< double > | ( | const double & | size, |
StorageType | source_unit, | ||
StorageType | target_unit | ||
) |
template float Elements::Kernel::Units::storageConvert< float > | ( | const float & | size, |
StorageType | source_unit, | ||
StorageType | target_unit | ||
) |
template int64_t Elements::Kernel::Units::storageConvert< int64_t > | ( | const int64_t & | size, |
StorageType | source_unit, | ||
StorageType | target_unit | ||
) |
template ELEMENTS_API std::int64_t Elements::Kernel::Units::storageConvert< std::int64_t > | ( | const std::int64_t & | size, |
StorageType | source_unit, | ||
StorageType | target_unit | ||
) |
|
constexpr |
Definition at line 127 of file SystemOfUnits.h.
Definition at line 62 of file PhysConstants.h.
Definition at line 58 of file SystemOfUnits.h.
|
constexpr |
Definition at line 186 of file SystemOfUnits.h.
\(N_A\)
Definition at line 37 of file PhysConstants.h.
|
constexpr |
Definition at line 185 of file SystemOfUnits.h.
Definition at line 61 of file SystemOfUnits.h.
|
constexpr |
Definition at line 239 of file SystemOfUnits.h.
\(c\)
Definition at line 40 of file PhysConstants.h.
\(c^2\)
Definition at line 42 of file PhysConstants.h.
|
constexpr |
Definition at line 250 of file SystemOfUnits.h.
Definition at line 46 of file SystemOfUnits.h.
|
constexpr |
Definition at line 47 of file SystemOfUnits.h.
|
constexpr |
Definition at line 48 of file SystemOfUnits.h.
|
constexpr |
Definition at line 75 of file SystemOfUnits.h.
|
constexpr |
Definition at line 76 of file SystemOfUnits.h.
|
constexpr |
Definition at line 77 of file SystemOfUnits.h.
Definition at line 135 of file SystemOfUnits.h.
Definition at line 240 of file SystemOfUnits.h.
|
constexpr |
Definition at line 102 of file SystemOfUnits.h.
Definition at line 94 of file SystemOfUnits.h.
|
constexpr |
The base of the natural logarithm \(e\).
Definition at line 51 of file MathConstants.h.
Referenced by Elements::Examples::ClassExample2::divideNumbers(), Elements::Examples::ClassExample::divideNumbers(), Elements::Services::DataSync::DataSync::downloadWithFallback(), Elements::Exception::Exception(), Elements::ProgramManager::getProgramOptions(), ExtProgram::mainMethod(), Elements::Examples::Program::mainMethod(), Elements::Services::DataSync::ConnectionConfiguration::parseConfigurationFile(), Elements::SimpleProgram::run(), and Elements::ProgramManager::setup().
Definition at line 137 of file SystemOfUnits.h.
\( e^2 \)
Definition at line 56 of file PhysConstants.h.
|
constexpr |
\( -e \)
Definition at line 54 of file PhysConstants.h.
\( m_e \)
Definition at line 59 of file PhysConstants.h.
Definition at line 155 of file SystemOfUnits.h.
Definition at line 69 of file PhysConstants.h.
|
constexpr |
Definition at line 136 of file SystemOfUnits.h.
permeability of free space \(\epsilon_0=1/(c^2\mu_0)\)
Definition at line 67 of file PhysConstants.h.
Definition at line 161 of file SystemOfUnits.h.
|
constexpr |
Definition at line 165 of file SystemOfUnits.h.
Definition at line 203 of file SystemOfUnits.h.
Definition at line 113 of file SystemOfUnits.h.
Definition at line 59 of file SystemOfUnits.h.
|
constexpr |
\( \alpha=e^2/(4\pi\epsilon_0\hbar c)\)
Definition at line 71 of file PhysConstants.h.
|
constexpr |
Definition at line 148 of file SystemOfUnits.h.
|
constexpr |
The Euler-Mascheroni \(\gamma\) constant.
Definition at line 49 of file MathConstants.h.
Definition at line 218 of file SystemOfUnits.h.
|
constexpr |
Definition at line 167 of file SystemOfUnits.h.
|
constexpr |
Definition at line 158 of file SystemOfUnits.h.
Definition at line 143 of file SystemOfUnits.h.
Definition at line 245 of file SystemOfUnits.h.
\( h \)
Definition at line 45 of file PhysConstants.h.
|
constexpr |
\(\pi/2\)
Definition at line 38 of file MathConstants.h.
\( \hbar=h/2\pi\)
Definition at line 47 of file PhysConstants.h.
|
constexpr |
\( \hbar c\)
Definition at line 49 of file PhysConstants.h.
\( (\hbar c)^2\)
Definition at line 51 of file PhysConstants.h.
Definition at line 224 of file SystemOfUnits.h.
|
constexpr |
Definition at line 115 of file SystemOfUnits.h.
Definition at line 256 of file SystemOfUnits.h.
|
constexpr |
Definition at line 154 of file SystemOfUnits.h.
Definition at line 73 of file PhysConstants.h.
|
constexpr |
Definition at line 229 of file SystemOfUnits.h.
|
constexpr |
Definition at line 166 of file SystemOfUnits.h.
|
constexpr |
Definition at line 147 of file SystemOfUnits.h.
Definition at line 78 of file PhysConstants.h.
|
constexpr |
Definition at line 157 of file SystemOfUnits.h.
Definition at line 219 of file SystemOfUnits.h.
|
constexpr |
Definition at line 142 of file SystemOfUnits.h.
Definition at line 116 of file SystemOfUnits.h.
|
constexpr |
Definition at line 50 of file SystemOfUnits.h.
Definition at line 51 of file SystemOfUnits.h.
Definition at line 52 of file SystemOfUnits.h.
Definition at line 193 of file SystemOfUnits.h.
|
constexpr |
Definition at line 83 of file SystemOfUnits.h.
|
constexpr |
Definition at line 84 of file SystemOfUnits.h.
|
constexpr |
Definition at line 85 of file SystemOfUnits.h.
Definition at line 255 of file SystemOfUnits.h.
Definition at line 262 of file SystemOfUnits.h.
|
constexpr |
Definition at line 79 of file SystemOfUnits.h.
Referenced by Elements::System::linkedModules(), Elements::Examples::Eigen::mainMethod(), Elements::operator<<(), and Elements::Logging::LogMessageStream::operator<<().
|
constexpr |
Definition at line 80 of file SystemOfUnits.h.
|
constexpr |
Definition at line 81 of file SystemOfUnits.h.
|
constexpr |
Definition at line 156 of file SystemOfUnits.h.
Definition at line 117 of file SystemOfUnits.h.
Definition at line 192 of file SystemOfUnits.h.
|
constexpr |
Definition at line 38 of file SystemOfUnits.h.
Definition at line 39 of file SystemOfUnits.h.
Definition at line 40 of file SystemOfUnits.h.
|
constexpr |
Definition at line 164 of file SystemOfUnits.h.
|
constexpr |
Definition at line 149 of file SystemOfUnits.h.
Definition at line 129 of file SystemOfUnits.h.
Definition at line 63 of file SystemOfUnits.h.
Definition at line 205 of file SystemOfUnits.h.
Definition at line 257 of file SystemOfUnits.h.
Definition at line 56 of file SystemOfUnits.h.
Definition at line 111 of file SystemOfUnits.h.
Definition at line 128 of file SystemOfUnits.h.
Definition at line 62 of file SystemOfUnits.h.
Definition at line 204 of file SystemOfUnits.h.
Definition at line 144 of file SystemOfUnits.h.
Definition at line 42 of file SystemOfUnits.h.
|
constexpr |
Definition at line 43 of file SystemOfUnits.h.
|
constexpr |
Definition at line 44 of file SystemOfUnits.h.
Definition at line 93 of file SystemOfUnits.h.
Definition at line 110 of file SystemOfUnits.h.
|
constexpr |
Definition at line 71 of file SystemOfUnits.h.
|
constexpr |
Definition at line 72 of file SystemOfUnits.h.
|
constexpr |
Definition at line 73 of file SystemOfUnits.h.
|
constexpr |
Definition at line 234 of file SystemOfUnits.h.
|
constexpr |
Definition at line 100 of file SystemOfUnits.h.
|
constexpr |
Definition at line 122 of file SystemOfUnits.h.
permeability of free space \(\mu_0\)
Definition at line 65 of file PhysConstants.h.
Definition at line 130 of file SystemOfUnits.h.
Definition at line 64 of file SystemOfUnits.h.
Definition at line 206 of file SystemOfUnits.h.
Definition at line 57 of file SystemOfUnits.h.
Definition at line 109 of file SystemOfUnits.h.
Definition at line 179 of file SystemOfUnits.h.
|
constexpr |
Definition at line 68 of file SystemOfUnits.h.
|
constexpr |
Definition at line 120 of file SystemOfUnits.h.
Definition at line 198 of file SystemOfUnits.h.
Definition at line 184 of file SystemOfUnits.h.
Definition at line 54 of file SystemOfUnits.h.
|
constexpr |
Definition at line 87 of file SystemOfUnits.h.
|
constexpr |
Definition at line 267 of file SystemOfUnits.h.
|
constexpr |
Definition at line 269 of file SystemOfUnits.h.
|
constexpr |
Definition at line 268 of file SystemOfUnits.h.
|
constexpr |
Definition at line 160 of file SystemOfUnits.h.
|
constexpr |
Definition at line 169 of file SystemOfUnits.h.
|
constexpr |
\(\pi\)
Definition at line 34 of file MathConstants.h.
Referenced by Elements::Examples::PiCalculator::calculate(), Elements::Examples::Fftw::mainMethod(), and Elements::Examples::printFloatPrecision().
\(\pi^2\)
Definition at line 40 of file MathConstants.h.
Definition at line 65 of file SystemOfUnits.h.
Definition at line 207 of file SystemOfUnits.h.
Definition at line 112 of file SystemOfUnits.h.
\( m_p \)
Definition at line 61 of file PhysConstants.h.
|
constexpr |
Definition at line 99 of file SystemOfUnits.h.
|
constexpr |
Definition at line 92 of file SystemOfUnits.h.
|
constexpr |
Definition at line 121 of file SystemOfUnits.h.
Referenced by Elements::ProgramManager::bootstrapEnvironment(), Elements::numberCast(), and Elements::Kernel::Path::splitPath().
|
constexpr |
Definition at line 107 of file SystemOfUnits.h.
Referenced by Elements::Examples::ClassExample2::divideNumbers(), Elements::Examples::ClassExample::divideNumbers(), ExtProgram::mainMethod(), and Elements::Examples::Program::mainMethod().
|
constexpr |
\(\sqrt{\frac{\pi}{2}}\)
Definition at line 46 of file MathConstants.h.
|
constexpr |
\(\sqrt{\pi}\)
Definition at line 42 of file MathConstants.h.
|
constexpr |
\(\sqrt{2}\)
Definition at line 44 of file MathConstants.h.
|
constexpr |
Definition at line 101 of file SystemOfUnits.h.
|
constexpr |
Definition at line 96 of file SystemOfUnits.h.
map< StorageType, int64_t > Elements::Kernel::Units::StorageFactor |
Definition at line 50 of file Storage.cpp.
map< StorageType, std::string > Elements::Kernel::Units::StorageShortName |
Definition at line 38 of file Storage.cpp.
|
constexpr |
Definition at line 77 of file PhysConstants.h.
|
constexpr |
Standard Temperature and Pressure.
Definition at line 76 of file PhysConstants.h.
|
constexpr |
Definition at line 159 of file SystemOfUnits.h.
Definition at line 216 of file SystemOfUnits.h.
|
constexpr |
Definition at line 168 of file SystemOfUnits.h.
|
constexpr |
\(2\pi\)
Definition at line 36 of file MathConstants.h.
|
constexpr |
Definition at line 69 of file SystemOfUnits.h.
Definition at line 80 of file PhysConstants.h.
|
constexpr |
Definition at line 191 of file SystemOfUnits.h.
Definition at line 174 of file SystemOfUnits.h.
Definition at line 212 of file SystemOfUnits.h.