summaryrefslogtreecommitdiffhomepage
path: root/compat/simple-mat.hpp
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2019-03-03 20:11:17 +0100
committerStanislaw Halik <sthalik@misaki.pl>2019-03-03 20:11:17 +0100
commit84b9169f541665601c677fbe69a3dd943d55894f (patch)
tree0643a54bea8e4c7bba72f247598359c82afbce12 /compat/simple-mat.hpp
parente5383a123d9e8e4bfaa0775a0ca9000a74914528 (diff)
compat/simple-mat: sprinkle more constexpr
Diffstat (limited to 'compat/simple-mat.hpp')
-rw-r--r--compat/simple-mat.hpp4
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_);