diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2019-03-03 20:11:17 +0100 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2019-03-03 20:11:17 +0100 |
commit | 84b9169f541665601c677fbe69a3dd943d55894f (patch) | |
tree | 0643a54bea8e4c7bba72f247598359c82afbce12 /compat | |
parent | e5383a123d9e8e4bfaa0775a0ca9000a74914528 (diff) |
compat/simple-mat: sprinkle more constexpr
Diffstat (limited to 'compat')
-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 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<int H_ = H> - static std::enable_if_t<H == W, Mat<num, H_, H_>> eye() + static constexpr std::enable_if_t<H == W, Mat<num, H_, H_>> eye() { static_assert(H == H_); |