Chris@49: // Copyright (C) 2012 Conrad Sanderson Chris@49: // Chris@49: // This Source Code Form is subject to the terms of the Mozilla Public Chris@49: // License, v. 2.0. If a copy of the MPL was not distributed with this Chris@49: // file, You can obtain one at http://mozilla.org/MPL/2.0/. Chris@49: Chris@49: Chris@49: //! \addtogroup SpGlue Chris@49: //! @{ Chris@49: Chris@49: Chris@49: Chris@49: template Chris@49: class SpGlue : public SpBase > Chris@49: { Chris@49: public: Chris@49: Chris@49: typedef typename T1::elem_type elem_type; Chris@49: typedef typename get_pod_type::result pod_type; Chris@49: Chris@49: static const bool is_row = ( (T1::is_row || T2::is_row) && is_spglue_elem::value ) || ( (is_spglue_times::value || is_spglue_times2::value) ? T1::is_row : false ); Chris@49: static const bool is_col = ( (T1::is_col || T2::is_col) && is_spglue_elem::value ) || ( (is_spglue_times::value || is_spglue_times2::value) ? T2::is_col : false ); Chris@49: Chris@49: arma_inline SpGlue(const T1& in_A, const T2& in_B); Chris@49: arma_inline SpGlue(const T1& in_A, const T2& in_B, const elem_type in_aux); Chris@49: arma_inline ~SpGlue(); Chris@49: Chris@49: const T1& A; //!< first operand Chris@49: const T2& B; //!< second operand Chris@49: elem_type aux; Chris@49: }; Chris@49: Chris@49: Chris@49: Chris@49: //! @}