]>
git.proxmox.com Git - ceph.git/blob - ceph/src/boost/libs/qvm/test/col_test.cpp
1 // Copyright 2008-2022 Emil Dotchevski and Reverge Studios, Inc.
3 // Distributed under the Boost Software License, Version 1.0. (See accompanying
4 // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
6 #ifdef BOOST_QVM_TEST_SINGLE_HEADER
7 # include BOOST_QVM_TEST_SINGLE_HEADER
9 # include <boost/qvm/map_mat_vec.hpp>
10 # include <boost/qvm/mat_operations.hpp>
11 # include <boost/qvm/vec_operations.hpp>
12 # include <boost/qvm/vec.hpp>
15 #include <boost/qvm/vec_traits_array.hpp>
16 #include "test_qvm.hpp"
17 #include "test_qvm_matrix.hpp"
22 template <int Rows
,int Cols
,int Col
>
26 using namespace boost::qvm
;
27 test_qvm::matrix
<M1
,Rows
,Cols
> x(42,1);
29 for( int i
=0; i
!=Rows
; ++i
)
32 assign(r2
,col
<Col
>(x
));
33 BOOST_QVM_TEST_EQ(r1
,r2
);
35 for( int i
=0; i
!=Rows
; ++i
)
37 assign(r2
,col
<Col
>(x
));
38 BOOST_QVM_TEST_EQ(r1
,r2
);
39 col
<Col
>(x
) + col
<Col
>(x
);
122 return boost::report_errors();