system
The vocabulary types everything else shares
Loading...
Searching...
No Matches
Constants.hpp
Go to the documentation of this file.
1
11#pragma once
12
13template<typename T>
14struct Epsilon {};
15
16template<>
17struct Epsilon<float> {
18 static constexpr float value = 1e-5f;
19};
20
21template<>
22struct Epsilon<double> {
23 static constexpr double value = 1e-9;
24};
25
26template<>
27struct Epsilon<long double> {
28 static constexpr long double value = 1e-12L;
29};
30
31template<typename T = float>
33
34constexpr double epsilonf = epsilon_v<float>;
35constexpr double epsilond = epsilon_v<double>;
36constexpr long double epsilonl = epsilon_v<long double>;
constexpr double epsilond
Definition Constants.hpp:35
constexpr T epsilon_v
Definition Constants.hpp:32
constexpr double epsilonf
Definition Constants.hpp:34
constexpr long double epsilonl
Definition Constants.hpp:36
Definition Constants.hpp:14