diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2017-06-30 11:48:25 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2017-06-30 11:48:46 +0200 |
commit | 6ee550ecbad85c6bce796d04b3238a4c0a491205 (patch) | |
tree | 93db52096cd6ddc3ce6b9832d0ab068b83f4ae43 /compat/simple-mat.hpp | |
parent | e59a5e62c38aad8ec66df1b05cc13d213e76e865 (diff) |
compat: slightly reformat
Diffstat (limited to 'compat/simple-mat.hpp')
-rw-r--r-- | compat/simple-mat.hpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/compat/simple-mat.hpp b/compat/simple-mat.hpp index 11bb191f..ca49ea5a 100644 --- a/compat/simple-mat.hpp +++ b/compat/simple-mat.hpp @@ -119,7 +119,7 @@ public: const num val = dot(*this); - if (std::fabs(val) < 1e-4) + if (std::fabs(val) < num(1e-4)) return num(0); else return std::sqrt(val); @@ -132,7 +132,7 @@ public: static_assert(P == h_ && Q == w_, ""); num ret = 0; - constexpr int len = vector_len<R, S>::value; + static constexpr int len = vector_len<R, S>::value; for (int i = 0; i < len; i++) ret += operator()(i) * p2(i); return ret; |