summaryrefslogtreecommitdiffhomepage
path: root/compat/simple-mat.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'compat/simple-mat.hpp')
-rw-r--r--compat/simple-mat.hpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/compat/simple-mat.hpp b/compat/simple-mat.hpp
index 49ae2c85..b7b58d42 100644
--- a/compat/simple-mat.hpp
+++ b/compat/simple-mat.hpp
@@ -286,6 +286,11 @@ public:
}
};
+} // ns simple_mat
+
+template<typename num, int h, int w>
+using Mat = simple_mat::Mat<num, h, w>;
+
template<typename num, int h, int w>
constexpr Mat<num, h, w> operator*(num scalar, const Mat<num, h, w>& mat)
{
@@ -301,8 +306,3 @@ constexpr Mat<num, H, W> operator*(const Mat<num, H, W>& self, num other)
ret(j, i) = self(j, i) * other;
return ret;
}
-
-} // ns simple_mat
-
-template<typename num, int h, int w>
-using Mat = simple_mat::Mat<num, h, w>;