ZonoOpt 2.5.0
Loading...
Searching...
No Matches
Defines.hpp
Go to the documentation of this file.
1
12#pragma once
13
14#define EIGEN_MPL2_ONLY // Disable features licensed under LGPL
15
16// ZonoOpt preprocessor directives
21#ifndef zono_float
22 #define zono_float double
23#endif
24
29#ifndef zono_eps
30 #define zono_eps Eigen::NumTraits<zono_float>::dummy_precision()
31#endif
32
33// constants
34namespace ZonoOpt::detail
35{
36 constexpr auto pi = static_cast<zono_float>(3.14159265358979323846);
37 constexpr auto zero = static_cast<zono_float>(0.0);
38 constexpr auto p5 = static_cast<zono_float>(0.5);
39 constexpr auto one = static_cast<zono_float>(1.0);
40 constexpr auto two = static_cast<zono_float>(2.0);
41}
#define zono_float
Defines the floating-point type used in ZonoOpt.
Definition Defines.hpp:22