Home
last modified time | relevance | path

Searched refs:mat_traits (Results 1 – 25 of 33) sorted by relevance

12

/third_party/boost/boost/qvm/
Dmat_access.hpp26 typename mat_traits<M>::scalar_type>::type
30 BOOST_STATIC_ASSERT(R<mat_traits<M>::rows); in A()
32 BOOST_STATIC_ASSERT(C<mat_traits<M>::cols); in A()
33 return mat_traits<M>::template read_element<R,C>(a); in A()
40 typename mat_traits<M>::scalar_type &>::type
44 BOOST_STATIC_ASSERT(R<mat_traits<M>::rows); in A()
46 BOOST_STATIC_ASSERT(C<mat_traits<M>::cols); in A()
47 return mat_traits<M>::template write_element<R,C>(a); in A()
52 …ename mat_traits<M>::scalar_type>::type A00( M const & a ) { BOOST_STATIC_ASSERT(0<mat_traits<M>::… in A00()
53 …ename mat_traits<M>::scalar_type>::type A01( M const & a ) { BOOST_STATIC_ASSERT(0<mat_traits<M>::… in A01()
[all …]
Dvec_mat_operations.hpp36 mat_traits<A>::cols==vec_traits<B>::dim &&
37 !qvm_detail::mul_mv_defined<mat_traits<A>::rows,mat_traits<A>::cols>::value,
38 deduce_vec2<A,B,mat_traits<A>::rows> >::type
41 typedef typename deduce_vec2<A,B,mat_traits<A>::rows>::type R; in operator *()
43 for( int i=0; i<mat_traits<A>::rows; ++i ) in operator *()
47 for( int j=0; j<mat_traits<A>::cols; ++j ) in operator *()
48 … x += mat_traits<A>::read_element_idx(i,j,a)*vec_traits<B>::read_element_idx(j,b); in operator *()
69 vec_traits<A>::dim==mat_traits<B>::rows &&
70 !qvm_detail::mul_vm_defined<mat_traits<B>::rows,mat_traits<B>::cols>::value,
71 deduce_vec2<A,B,mat_traits<B>::cols> >::type
[all …]
Dmap_mat_vec.hpp61 typedef typename mat_traits<OriginalMatrix>::scalar_type scalar_type;
62 static int const dim=mat_traits<OriginalMatrix>::rows;
64 BOOST_QVM_STATIC_ASSERT(Col<mat_traits<OriginalMatrix>::cols);
74 …return mat_traits<OriginalMatrix>::template read_element<I,Col>(reinterpret_cast<OriginalMatrix co… in read_element()
85 …return mat_traits<OriginalMatrix>::template write_element<I,Col>(reinterpret_cast<OriginalMatrix &… in write_element()
95 …return mat_traits<OriginalMatrix>::read_element_idx(i,Col,reinterpret_cast<OriginalMatrix const &>… in read_element_idx()
105 … return mat_traits<OriginalMatrix>::write_element_idx(i,Col,reinterpret_cast<OriginalMatrix &>(x)); in write_element_idx()
113 typedef vec<typename mat_traits<OriginalMatrix>::scalar_type,D> type;
120 typedef vec<typename mat_traits<OriginalMatrix>::scalar_type,D> type;
183 typedef typename mat_traits<OriginalMatrix>::scalar_type scalar_type;
[all …]
Dmap_mat_mat.hpp58 mat_traits< qvm_detail::del_row_<I,OriginalMatrix> > struct
61 typedef typename mat_traits<OriginalMatrix>::scalar_type scalar_type; argument
62 static int const rows=mat_traits<OriginalMatrix>::rows-1; argument
63 static int const cols=mat_traits<OriginalMatrix>::cols; argument
75 …return mat_traits<OriginalMatrix>::template read_element<Row+(Row>=I),Col>(reinterpret_cast<Origin… in read_element()
88 …return mat_traits<OriginalMatrix>::template write_element<Row+(Row>=I),Col>(reinterpret_cast<Origi… in write_element()
100 …return mat_traits<OriginalMatrix>::read_element_idx(row+(row>=I),col,reinterpret_cast<OriginalMatr… in read_element_idx()
112 …return mat_traits<OriginalMatrix>::write_element_idx(row+(row>=I),col,reinterpret_cast<OriginalMat… in write_element_idx()
120 typedef mat<typename mat_traits<OriginalMatrix>::scalar_type,R,C> type;
127 typedef mat<typename mat_traits<OriginalMatrix>::scalar_type,R,C> type;
[all …]
Dmat_traits_defaults.hpp19 struct mat_traits;
31 typename mat_traits<A>::scalar_type &
34 return (I/mat_traits<A>::cols)==r && (I%mat_traits<A>::cols)==c? in write_element_idx()
35mat_traits<A>::template write_element<I/mat_traits<A>::cols,I%mat_traits<A>::cols>(a) : in write_element_idx()
47 typename mat_traits<A>::scalar_type &
51 return mat_traits<A>::template write_element<0,0>(a); in write_element_idx()
71 … return mat_traits<mat_type>::template write_element<Row,Col>(const_cast<mat_type &>(x)); in read_element()
79 return mat_traits<mat_type>::write_element_idx(r,c,const_cast<mat_type &>(x)); in read_element_idx()
89 …return qvm_detail::matrix_w<0,mat_traits<mat_type>::rows*mat_traits<mat_type>::cols>::write_elemen… in write_element_idx()
Ddeduce_mat.hpp26 int MR=mat_traits<M>::rows,
27 int MC=mat_traits<M>::cols>
32 typedef mat<typename mat_traits<M>::scalar_type,R,C> type;
44 template <class Type,int Rows=mat_traits<Type>::rows,int Cols=mat_traits<Type>::cols>
58 int AR=mat_traits<A>::rows,
59 int AC=mat_traits<A>::cols,
60 int BR=mat_traits<B>::rows,
61 int BC=mat_traits<B>::cols>
Dmat_traits.hpp17 mat_traits struct
28 static bool const value=mat_traits<T>::rows>0 && mat_traits<T>::cols>0;
Dmap_vec_mat.hpp58 mat_traits< qvm_detail::col_mat_<OriginalVector> > struct
183 mat_traits< qvm_detail::row_mat_<OriginalVector> > struct
305 template <class M,int Row,int Col,bool TransCol=(Col==mat_traits<M>::cols-1)>
314 typename mat_traits< translation_mat_<OriginalVector> >::scalar_type
317 …return scalar_traits<typename mat_traits< translation_mat_<OriginalVector> >::scalar_type>::value(… in f()
327 typename mat_traits< translation_mat_<OriginalVector> >::scalar_type
330 …return scalar_traits<typename mat_traits< translation_mat_<OriginalVector> >::scalar_type>::value(… in f()
340 typename mat_traits< translation_mat_<OriginalVector> >::scalar_type
343 …return scalar_traits<typename mat_traits< translation_mat_<OriginalVector> >::scalar_type>::value(… in f()
353 typename mat_traits< translation_mat_<OriginalVector> >::scalar_type
[all …]
Dmat.hpp34 struct mat_traits;
38 mat_traits< mat<T,Rows,Cols> > struct
/third_party/boost/boost/qvm/gen/
Dmat_operations4.hpp29 mat_traits<A>::rows==4 && mat_traits<B>::rows==4 &&
30 mat_traits<A>::cols==4 && mat_traits<B>::cols==4,
35 BOOST_QVM_STATIC_ASSERT(mat_traits<R>::rows==4); in operator +()
36 BOOST_QVM_STATIC_ASSERT(mat_traits<R>::cols==4); in operator +()
38mat_traits<R>::template write_element<0,0>(r)=mat_traits<A>::template read_element<0,0>(a)+mat_tra… in operator +()
39mat_traits<R>::template write_element<0,1>(r)=mat_traits<A>::template read_element<0,1>(a)+mat_tra… in operator +()
40mat_traits<R>::template write_element<0,2>(r)=mat_traits<A>::template read_element<0,2>(a)+mat_tra… in operator +()
41mat_traits<R>::template write_element<0,3>(r)=mat_traits<A>::template read_element<0,3>(a)+mat_tra… in operator +()
42mat_traits<R>::template write_element<1,0>(r)=mat_traits<A>::template read_element<1,0>(a)+mat_tra… in operator +()
43mat_traits<R>::template write_element<1,1>(r)=mat_traits<A>::template read_element<1,1>(a)+mat_tra… in operator +()
[all …]
Dmat_operations3.hpp29 mat_traits<A>::rows==3 && mat_traits<B>::rows==3 &&
30 mat_traits<A>::cols==3 && mat_traits<B>::cols==3,
35 BOOST_QVM_STATIC_ASSERT(mat_traits<R>::rows==3); in operator +()
36 BOOST_QVM_STATIC_ASSERT(mat_traits<R>::cols==3); in operator +()
38mat_traits<R>::template write_element<0,0>(r)=mat_traits<A>::template read_element<0,0>(a)+mat_tra… in operator +()
39mat_traits<R>::template write_element<0,1>(r)=mat_traits<A>::template read_element<0,1>(a)+mat_tra… in operator +()
40mat_traits<R>::template write_element<0,2>(r)=mat_traits<A>::template read_element<0,2>(a)+mat_tra… in operator +()
41mat_traits<R>::template write_element<1,0>(r)=mat_traits<A>::template read_element<1,0>(a)+mat_tra… in operator +()
42mat_traits<R>::template write_element<1,1>(r)=mat_traits<A>::template read_element<1,1>(a)+mat_tra… in operator +()
43mat_traits<R>::template write_element<1,2>(r)=mat_traits<A>::template read_element<1,2>(a)+mat_tra… in operator +()
[all …]
Dmat_operations2.hpp27 mat_traits<A>::rows==2 && mat_traits<B>::rows==2 &&
28 mat_traits<A>::cols==2 && mat_traits<B>::cols==2,
33 BOOST_QVM_STATIC_ASSERT(mat_traits<R>::rows==2); in operator +()
34 BOOST_QVM_STATIC_ASSERT(mat_traits<R>::cols==2); in operator +()
36mat_traits<R>::template write_element<0,0>(r)=mat_traits<A>::template read_element<0,0>(a)+mat_tra… in operator +()
37mat_traits<R>::template write_element<0,1>(r)=mat_traits<A>::template read_element<0,1>(a)+mat_tra… in operator +()
38mat_traits<R>::template write_element<1,0>(r)=mat_traits<A>::template read_element<1,0>(a)+mat_tra… in operator +()
39mat_traits<R>::template write_element<1,1>(r)=mat_traits<A>::template read_element<1,1>(a)+mat_tra… in operator +()
66 mat_traits<A>::rows==2 && mat_traits<B>::rows==2 &&
67 mat_traits<A>::cols==1 && mat_traits<B>::cols==1,
[all …]
Dmat_assign4.hpp24 mat_traits<A>::rows==4 && mat_traits<B>::rows==4 &&
25 mat_traits<A>::cols==4 && mat_traits<B>::cols==4,
29mat_traits<A>::template write_element<0,0>(a)=mat_traits<B>::template read_element<0,0>(b); in assign()
30mat_traits<A>::template write_element<0,1>(a)=mat_traits<B>::template read_element<0,1>(b); in assign()
31mat_traits<A>::template write_element<0,2>(a)=mat_traits<B>::template read_element<0,2>(b); in assign()
32mat_traits<A>::template write_element<0,3>(a)=mat_traits<B>::template read_element<0,3>(b); in assign()
33mat_traits<A>::template write_element<1,0>(a)=mat_traits<B>::template read_element<1,0>(b); in assign()
34mat_traits<A>::template write_element<1,1>(a)=mat_traits<B>::template read_element<1,1>(b); in assign()
35mat_traits<A>::template write_element<1,2>(a)=mat_traits<B>::template read_element<1,2>(b); in assign()
36mat_traits<A>::template write_element<1,3>(a)=mat_traits<B>::template read_element<1,3>(b); in assign()
[all …]
Dmat_assign3.hpp24 mat_traits<A>::rows==3 && mat_traits<B>::rows==3 &&
25 mat_traits<A>::cols==3 && mat_traits<B>::cols==3,
29mat_traits<A>::template write_element<0,0>(a)=mat_traits<B>::template read_element<0,0>(b); in assign()
30mat_traits<A>::template write_element<0,1>(a)=mat_traits<B>::template read_element<0,1>(b); in assign()
31mat_traits<A>::template write_element<0,2>(a)=mat_traits<B>::template read_element<0,2>(b); in assign()
32mat_traits<A>::template write_element<1,0>(a)=mat_traits<B>::template read_element<1,0>(b); in assign()
33mat_traits<A>::template write_element<1,1>(a)=mat_traits<B>::template read_element<1,1>(b); in assign()
34mat_traits<A>::template write_element<1,2>(a)=mat_traits<B>::template read_element<1,2>(b); in assign()
35mat_traits<A>::template write_element<2,0>(a)=mat_traits<B>::template read_element<2,0>(b); in assign()
36mat_traits<A>::template write_element<2,1>(a)=mat_traits<B>::template read_element<2,1>(b); in assign()
[all …]
Dmat_assign2.hpp24 mat_traits<A>::rows==2 && mat_traits<B>::rows==2 &&
25 mat_traits<A>::cols==2 && mat_traits<B>::cols==2,
29mat_traits<A>::template write_element<0,0>(a)=mat_traits<B>::template read_element<0,0>(b); in assign()
30mat_traits<A>::template write_element<0,1>(a)=mat_traits<B>::template read_element<0,1>(b); in assign()
31mat_traits<A>::template write_element<1,0>(a)=mat_traits<B>::template read_element<1,0>(b); in assign()
32mat_traits<A>::template write_element<1,1>(a)=mat_traits<B>::template read_element<1,1>(b); in assign()
59 mat_traits<A>::rows==2 && mat_traits<B>::rows==2 &&
60 mat_traits<A>::cols==1 && mat_traits<B>::cols==1,
64mat_traits<A>::template write_element<0,0>(a)=mat_traits<B>::template read_element<0,0>(b); in assign()
65mat_traits<A>::template write_element<1,0>(a)=mat_traits<B>::template read_element<1,0>(b); in assign()
[all …]
Dvec_mat_operations4.hpp26 mat_traits<A>::rows==4 && mat_traits<A>::cols==4 &&
31 typedef typename mat_traits<A>::scalar_type Ta; in operator *()
33 Ta const a00 = mat_traits<A>::template read_element<0,0>(a); in operator *()
34 Ta const a01 = mat_traits<A>::template read_element<0,1>(a); in operator *()
35 Ta const a02 = mat_traits<A>::template read_element<0,2>(a); in operator *()
36 Ta const a03 = mat_traits<A>::template read_element<0,3>(a); in operator *()
37 Ta const a10 = mat_traits<A>::template read_element<1,0>(a); in operator *()
38 Ta const a11 = mat_traits<A>::template read_element<1,1>(a); in operator *()
39 Ta const a12 = mat_traits<A>::template read_element<1,2>(a); in operator *()
40 Ta const a13 = mat_traits<A>::template read_element<1,3>(a); in operator *()
[all …]
Dvec_mat_operations3.hpp26 mat_traits<A>::rows==3 && mat_traits<A>::cols==3 &&
31 typedef typename mat_traits<A>::scalar_type Ta; in operator *()
33 Ta const a00 = mat_traits<A>::template read_element<0,0>(a); in operator *()
34 Ta const a01 = mat_traits<A>::template read_element<0,1>(a); in operator *()
35 Ta const a02 = mat_traits<A>::template read_element<0,2>(a); in operator *()
36 Ta const a10 = mat_traits<A>::template read_element<1,0>(a); in operator *()
37 Ta const a11 = mat_traits<A>::template read_element<1,1>(a); in operator *()
38 Ta const a12 = mat_traits<A>::template read_element<1,2>(a); in operator *()
39 Ta const a20 = mat_traits<A>::template read_element<2,0>(a); in operator *()
40 Ta const a21 = mat_traits<A>::template read_element<2,1>(a); in operator *()
[all …]
Dvec_mat_operations2.hpp26 mat_traits<A>::rows==2 && mat_traits<A>::cols==2 &&
31 typedef typename mat_traits<A>::scalar_type Ta; in operator *()
33 Ta const a00 = mat_traits<A>::template read_element<0,0>(a); in operator *()
34 Ta const a01 = mat_traits<A>::template read_element<0,1>(a); in operator *()
35 Ta const a10 = mat_traits<A>::template read_element<1,0>(a); in operator *()
36 Ta const a11 = mat_traits<A>::template read_element<1,1>(a); in operator *()
70 mat_traits<B>::rows==2 && mat_traits<B>::cols==2 &&
76 typedef typename mat_traits<B>::scalar_type Tb; in operator *()
79 Tb const b00 = mat_traits<B>::template read_element<0,0>(b); in operator *()
80 Tb const b01 = mat_traits<B>::template read_element<0,1>(b); in operator *()
[all …]
/third_party/boost/libs/qvm/test/
Dmat_traits_array_test.cpp25 BOOST_QVM_STATIC_ASSERT(mat_traits<T>::rows==3); in test_ref_cast()
26 BOOST_QVM_STATIC_ASSERT(mat_traits<T>::cols==2); in test_ref_cast()
27 BOOST_TEST((mat_traits<T>::template read_element<0,0>(v)==ptr[0*2+0])); in test_ref_cast()
28 BOOST_TEST((mat_traits<T>::template read_element<0,1>(v)==ptr[0*2+1])); in test_ref_cast()
29 BOOST_TEST((mat_traits<T>::template read_element<1,0>(v)==ptr[1*2+0])); in test_ref_cast()
30 BOOST_TEST((mat_traits<T>::template read_element<1,1>(v)==ptr[1*2+1])); in test_ref_cast()
31 BOOST_TEST((mat_traits<T>::template read_element<2,0>(v)==ptr[2*2+0])); in test_ref_cast()
32 BOOST_TEST((mat_traits<T>::template read_element<2,1>(v)==ptr[2*2+1])); in test_ref_cast()
33 BOOST_TEST((&mat_traits<T>::template write_element<0,0>(v)==&ptr[0*2+0])); in test_ref_cast()
34 BOOST_TEST((&mat_traits<T>::template write_element<0,1>(v)==&ptr[0*2+1])); in test_ref_cast()
[all …]
Dmat_index_test.cpp21 BOOST_TEST(mat_traits<M>::read_element_idx(0,0,m)==m.a[0][0]); in main()
22 BOOST_TEST(mat_traits<M>::read_element_idx(0,1,m)==m.a[0][1]); in main()
23 BOOST_TEST(mat_traits<M>::read_element_idx(0,2,m)==m.a[0][2]); in main()
24 BOOST_TEST(mat_traits<M>::read_element_idx(1,0,m)==m.a[1][0]); in main()
25 BOOST_TEST(mat_traits<M>::read_element_idx(1,1,m)==m.a[1][1]); in main()
26 BOOST_TEST(mat_traits<M>::read_element_idx(1,2,m)==m.a[1][2]); in main()
27 BOOST_TEST(&mat_traits<M>::write_element_idx(0,0,m)==&m.a[0][0]); in main()
28 BOOST_TEST(&mat_traits<M>::write_element_idx(0,1,m)==&m.a[0][1]); in main()
29 BOOST_TEST(&mat_traits<M>::write_element_idx(0,2,m)==&m.a[0][2]); in main()
30 BOOST_TEST(&mat_traits<M>::write_element_idx(1,0,m)==&m.a[1][0]); in main()
[all …]
/third_party/boost/boost/qvm/detail/
Dmat_assign.hpp39mat_traits<A>::template write_element<I/mat_traits<A>::cols,I%mat_traits<A>::cols>(a) = in f()
40mat_traits<B>::template read_element<I/mat_traits<B>::cols,I%mat_traits<B>::cols>(b); in f()
63 mat_traits<A>::rows==mat_traits<B>::rows &&
64 mat_traits<A>::cols==mat_traits<B>::cols &&
65 !qvm_detail::assign_mm_defined<mat_traits<A>::rows,mat_traits<A>::cols>::value,
69 qvm_detail::copy_matrix_elements<0,mat_traits<A>::rows*mat_traits<A>::cols>::f(a,b); in assign()
Ddeterminant_impl.hpp30 typename mat_traits<M>::scalar_type
34mat_traits<M>::template read_element<0,0>(a) * mat_traits<M>::template read_element<1,1>(a) - in determinant_impl_()
35mat_traits<M>::template read_element<1,0>(a) * mat_traits<M>::template read_element<0,1>(a); in determinant_impl_()
40 typename mat_traits<M>::scalar_type
43 typedef typename mat_traits<M>::scalar_type T; in determinant_impl_()
55 m[i-1][j2] = mat_traits<M>::read_element_idx(i,j,a); in determinant_impl_()
62 det += mat_traits<M>::read_element_idx(0,j1,a) * d; in determinant_impl_()
69 typename mat_traits<M>::scalar_type
72 BOOST_QVM_STATIC_ASSERT(mat_traits<M>::rows==mat_traits<M>::cols); in determinant_impl()
73 return determinant_impl_(a,det_size<mat_traits<M>::rows>()); in determinant_impl()
Dtransp_impl.hpp54 mat_traits< qvm_detail::transposed_<OriginalMatrix> > struct
56 typedef typename mat_traits<OriginalMatrix>::scalar_type scalar_type; argument
58 static int const rows=mat_traits<OriginalMatrix>::cols; argument
59 static int const cols=mat_traits<OriginalMatrix>::rows; argument
71 …return mat_traits<OriginalMatrix>::template read_element<Col,Row>(reinterpret_cast<OriginalMatrix … in read_element()
84 …return mat_traits<OriginalMatrix>::template write_element<Col,Row>(reinterpret_cast<OriginalMatrix… in write_element()
96 …return mat_traits<OriginalMatrix>::read_element_idx(col,row,reinterpret_cast<OriginalMatrix const … in read_element_idx()
108 …return mat_traits<OriginalMatrix>::write_element_idx(col,row,reinterpret_cast<OriginalMatrix &>(x)… in write_element_idx()
116 typedef mat<typename mat_traits<OriginalMatrix>::scalar_type,R,C> type;
123 typedef mat<typename mat_traits<OriginalMatrix>::scalar_type,R,C> type;
Dcofactor_impl.hpp27 BOOST_QVM_STATIC_ASSERT(mat_traits<A>::rows==mat_traits<A>::cols); in cofactor_impl()
28 int const N=mat_traits<A>::rows; in cofactor_impl()
29 typedef typename mat_traits<A>::scalar_type T; in cofactor_impl()
47 c[i1][j1] = mat_traits<A>::read_element_idx(ii,jj,a); in cofactor_impl()
55 mat_traits<R>::write_element_idx(i,j,b) = det; in cofactor_impl()
/third_party/boost/libs/qvm/doc/
Dqvm.adoc60 …<<quat_traits,`quat_traits`>>, <<vec_traits,`vec_traits`>> and <<mat_traits,`mat_traits`>> templat…
122 After a similar specialization of the <<mat_traits,`mat_traits`>> template for a user-defined 3x3 m…
141 …<<quat_traits,`quat_traits`>>, <<vec_traits,`vec_traits`>> and <<mat_traits,`mat_traits`>> special…
254 is_mat<A>::value && is_vec<B>::value && mat_traits<A>::cols==vec_traits<B>::dim, //Condition
391 | Matrix traits |#include <boost/qvm/mat_traits.hpp>
545 The expression <<mat_traits,`mat_traits<T>::scalar_type`>> evaluates to the scalar type of the matr…
1034 .#include <boost/qvm/mat_traits.hpp>
1049 …ine whether a type `T` is a matrix type. For matrix types, the <<mat_traits,`mat_traits`>> templat…
1053 [[mat_traits]] anchor
1054 ==== `mat_traits`
[all …]

12