]> git.proxmox.com Git - ceph.git/blame - ceph/src/boost/libs/qvm/test/mul_eq_mm_test.cpp
update sources to v12.2.4
[ceph.git] / ceph / src / boost / libs / qvm / test / mul_eq_mm_test.cpp
CommitLineData
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_operations.hpp>\r
7#include "test_qvm_matrix.hpp"\r
8#include "gold.hpp"\r
9\r
10namespace\r
11 {\r
12 template <int Dim>\r
13 void\r
14 test()\r
15 {\r
16 using namespace boost::qvm::sfinae;\r
17 {\r
18 test_qvm::matrix<M1,Dim,Dim> x(42,1);\r
19 test_qvm::matrix<M1,Dim,Dim> const y(42,2);\r
20 test_qvm::multiply_m(x.b,x.a,y.a);\r
21 x *= y;\r
22 BOOST_QVM_TEST_EQ(x.a,x.b);\r
23 }\r
24 {\r
25 test_qvm::matrix<M1,Dim,Dim> x(42,1);\r
26 test_qvm::matrix<M2,Dim,Dim> const y(42,2);\r
27 test_qvm::multiply_m(x.b,x.a,y.a);\r
28 x *= y;\r
29 BOOST_QVM_TEST_EQ(x.a,x.b);\r
30 }\r
31 }\r
32 }\r
33\r
34int\r
35main()\r
36 {\r
37 test<2>();\r
38 test<3>();\r
39 test<4>();\r
40 test<5>();\r
41 return boost::report_errors();\r
42 }\r