]>
Commit | Line | Data |
---|---|---|
3a9019d9 FG |
1 | //Copyright (c) 2008-2016 Emil Dotchevski and Reverge Studios, Inc.\r |
2 | \r | |
3 | //Distributed under the Boost Software License, Version 1.0. (See accompanying\r | |
4 | //file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)\r | |
5 | \r | |
6 | #include <boost/qvm/mat_access.hpp>\r | |
7 | \r | |
8 | template <int R,int C> struct my_mat { };\r | |
9 | \r | |
10 | namespace\r | |
11 | boost\r | |
12 | {\r | |
13 | namespace\r | |
14 | qvm\r | |
15 | {\r | |
16 | template <int R,int C>\r | |
17 | struct\r | |
18 | mat_traits< my_mat<R,C> >\r | |
19 | {\r | |
20 | typedef int scalar_type;\r | |
21 | static int const rows=R;\r | |
22 | static int const cols=C;\r | |
23 | template <int Row,int Col> static int read_element( my_mat<R,C> const & );\r | |
24 | template <int Row,int Col> static int & write_element( my_mat<R,C> & );\r | |
25 | };\r | |
26 | }\r | |
27 | }\r | |
28 | \r | |
29 | int\r | |
30 | main()\r | |
31 | {\r | |
32 | using namespace boost::qvm;\r | |
33 | my_mat<1,1> const m=my_mat<1,1>();\r | |
34 | A11(m);\r | |
35 | return 1;\r | |
36 | }\r |