From 84b9169f541665601c677fbe69a3dd943d55894f Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Sun, 3 Mar 2019 20:11:17 +0100 Subject: compat/simple-mat: sprinkle more constexpr --- compat/simple-mat.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/compat/simple-mat.hpp b/compat/simple-mat.hpp index b7b58d42..d499ee36 100644 --- a/compat/simple-mat.hpp +++ b/compat/simple-mat.hpp @@ -236,7 +236,7 @@ public: data[j][i] = num(0); } - Mat(const num* mem) + constexpr Mat(const num* mem) { for (int j = 0; j < H; j++) for (int i = 0; i < W; i++) @@ -250,7 +250,7 @@ public: // not needed merely for matrix algebra -sh 20141030 template - static std::enable_if_t> eye() + static constexpr std::enable_if_t> eye() { static_assert(H == H_); -- cgit v1.2.3