#ifndef BOOST_QVM_GEN_VEC_MAT_OPERATIONS3_HPP_INCLUDED #define BOOST_QVM_GEN_VEC_MAT_OPERATIONS3_HPP_INCLUDED /// Copyright (c) 2008-2021 Emil Dotchevski and Reverge Studios, Inc. /// Distributed under the Boost Software License, Version 1.0. (See accompanying /// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) /// This file was generated by a program. Do not edit manually. #include #include #include #include #include namespace boost { namespace qvm { template BOOST_QVM_INLINE_OPERATIONS typename lazy_enable_if_c< mat_traits::rows==3 && mat_traits::cols==3 && vec_traits::dim==3, deduce_vec2 >::type operator*( A const & a, B const & b ) { typedef typename mat_traits::scalar_type Ta; typedef typename vec_traits::scalar_type Tb; Ta const a00 = mat_traits::template read_element<0,0>(a); Ta const a01 = mat_traits::template read_element<0,1>(a); Ta const a02 = mat_traits::template read_element<0,2>(a); Ta const a10 = mat_traits::template read_element<1,0>(a); Ta const a11 = mat_traits::template read_element<1,1>(a); Ta const a12 = mat_traits::template read_element<1,2>(a); Ta const a20 = mat_traits::template read_element<2,0>(a); Ta const a21 = mat_traits::template read_element<2,1>(a); Ta const a22 = mat_traits::template read_element<2,2>(a); Tb const b0 = vec_traits::template read_element<0>(b); Tb const b1 = vec_traits::template read_element<1>(b); Tb const b2 = vec_traits::template read_element<2>(b); typedef typename deduce_vec2::type R; BOOST_QVM_STATIC_ASSERT(vec_traits::dim==3); R r; vec_traits::template write_element<0>(r)=a00*b0+a01*b1+a02*b2; vec_traits::template write_element<1>(r)=a10*b0+a11*b1+a12*b2; vec_traits::template write_element<2>(r)=a20*b0+a21*b1+a22*b2; return r; } namespace sfinae { using ::boost::qvm::operator*; } namespace qvm_detail { template struct mul_mv_defined; template <> struct mul_mv_defined<3,3> { static bool const value=true; }; } template BOOST_QVM_INLINE_OPERATIONS typename lazy_enable_if_c< mat_traits::rows==3 && mat_traits::cols==3 && vec_traits::dim==3, deduce_vec2 >::type operator*( A const & a, B const & b ) { typedef typename vec_traits::scalar_type Ta; typedef typename mat_traits::scalar_type Tb; Ta const a0 = vec_traits::template read_element<0>(a); Ta const a1 = vec_traits::template read_element<1>(a); Ta const a2 = vec_traits::template read_element<2>(a); Tb const b00 = mat_traits::template read_element<0,0>(b); Tb const b01 = mat_traits::template read_element<0,1>(b); Tb const b02 = mat_traits::template read_element<0,2>(b); Tb const b10 = mat_traits::template read_element<1,0>(b); Tb const b11 = mat_traits::template read_element<1,1>(b); Tb const b12 = mat_traits::template read_element<1,2>(b); Tb const b20 = mat_traits::template read_element<2,0>(b); Tb const b21 = mat_traits::template read_element<2,1>(b); Tb const b22 = mat_traits::template read_element<2,2>(b); typedef typename deduce_vec2::type R; BOOST_QVM_STATIC_ASSERT(vec_traits::dim==3); R r; vec_traits::template write_element<0>(r)=a0*b00+a1*b10+a2*b20; vec_traits::template write_element<1>(r)=a0*b01+a1*b11+a2*b21; vec_traits::template write_element<2>(r)=a0*b02+a1*b12+a2*b22; return r; } namespace sfinae { using ::boost::qvm::operator*; } namespace qvm_detail { template struct mul_vm_defined; template <> struct mul_vm_defined<3,3> { static bool const value=true; }; } } } #endif