From b5cdedb08159655819e73bba0754ef36a5565e66 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Mon, 7 Jan 2019 11:05:51 +0100 Subject: cv/numeric: use single precision --- cv/numeric.hpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/cv/numeric.hpp b/cv/numeric.hpp index 7d850cbe..ee24331f 100644 --- a/cv/numeric.hpp +++ b/cv/numeric.hpp @@ -1,9 +1,12 @@ #pragma once +#include #include namespace types { - using f = double; + using f = float; + + static_assert(std::is_floating_point_v); static constexpr inline f eps = f(1e-8); static constexpr inline f pi = f(M_PI); -- cgit v1.2.3