Chris@49: // Copyright (C) 2010 NICTA (www.nicta.com.au) Chris@49: // Copyright (C) 2010 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 fn_join Chris@49: //! @{ Chris@49: Chris@49: Chris@49: Chris@49: template Chris@49: inline Chris@49: const Glue Chris@49: join_cols(const Base& A, const Base& B) Chris@49: { Chris@49: arma_extra_debug_sigprint(); Chris@49: Chris@49: return Glue(A.get_ref(), B.get_ref(), 0); Chris@49: } Chris@49: Chris@49: Chris@49: Chris@49: template Chris@49: inline Chris@49: const Glue Chris@49: join_rows(const Base& A, const Base& B) Chris@49: { Chris@49: arma_extra_debug_sigprint(); Chris@49: Chris@49: return Glue(A.get_ref(), B.get_ref(), 1); Chris@49: } Chris@49: Chris@49: Chris@49: Chris@49: template Chris@49: inline Chris@49: const GlueCube Chris@49: join_slices(const BaseCube& A, const BaseCube& B) Chris@49: { Chris@49: arma_extra_debug_sigprint(); Chris@49: Chris@49: return GlueCube(A.get_ref(), B.get_ref()); Chris@49: } Chris@49: Chris@49: Chris@49: Chris@49: //! @}