1 // SPDX-License-Identifier: Apache-2.0 2 // 3 // Copyright 2008-2016 Conrad Sanderson (http://conradsanderson.id.au) 4 // Copyright 2008-2016 National ICT Australia (NICTA) 5 // 6 // Licensed under the Apache License, Version 2.0 (the "License"); 7 // you may not use this file except in compliance with the License. 8 // You may obtain a copy of the License at 9 // http://www.apache.org/licenses/LICENSE-2.0 10 // 11 // Unless required by applicable law or agreed to in writing, software 12 // distributed under the License is distributed on an "AS IS" BASIS, 13 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 // See the License for the specific language governing permissions and 15 // limitations under the License. 16 // ------------------------------------------------------------------------ 17 18 19 //! \addtogroup mtGlue 20 //! @{ 21 22 23 24 template<typename out_eT, typename T1, typename T2, typename glue_type> 25 class mtGlue : public Base< out_eT, mtGlue<out_eT, T1, T2, glue_type> > 26 { 27 public: 28 29 typedef out_eT elem_type; 30 typedef typename get_pod_type<out_eT>::result pod_type; 31 32 static constexpr bool is_row = glue_type::template traits<T1,T2>::is_row; 33 static constexpr bool is_col = glue_type::template traits<T1,T2>::is_col; 34 static constexpr bool is_xvec = glue_type::template traits<T1,T2>::is_xvec; 35 36 arma_inline mtGlue(const T1& in_A, const T2& in_B); 37 arma_inline mtGlue(const T1& in_A, const T2& in_B, const uword in_aux_uword); 38 arma_inline ~mtGlue(); 39 40 arma_aligned const T1& A; //!< first operand; must be derived from Base 41 arma_aligned const T2& B; //!< second operand; must be derived from Base 42 arma_aligned uword aux_uword; //!< storage of auxiliary data, uword format 43 }; 44 45 46 47 //! @} 48