41 lines
984 B
C++
41 lines
984 B
C++
// Copyright (C) 2012 National ICT Australia (NICTA)
|
|
//
|
|
// This Source Code Form is subject to the terms of the Mozilla Public
|
|
// License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
// file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
|
// -------------------------------------------------------------------
|
|
//
|
|
// Written by Conrad Sanderson - http://conradsanderson.id.au
|
|
|
|
|
|
//! \addtogroup spglue_plus
|
|
//! @{
|
|
|
|
|
|
|
|
class spglue_plus
|
|
{
|
|
public:
|
|
|
|
template<typename T1, typename T2>
|
|
arma_hot inline static void apply(SpMat<typename T1::elem_type>& out, const SpGlue<T1,T2,spglue_plus>& X);
|
|
|
|
template<typename eT, typename T1, typename T2>
|
|
arma_hot inline static void apply_noalias(SpMat<eT>& out, const SpProxy<T1>& pa, const SpProxy<T2>& pb);
|
|
};
|
|
|
|
|
|
|
|
class spglue_plus2
|
|
{
|
|
public:
|
|
|
|
template<typename T1, typename T2>
|
|
arma_hot inline static void apply(SpMat<typename T1::elem_type>& out, const SpGlue<T1,T2,spglue_plus2>& X);
|
|
};
|
|
|
|
|
|
|
|
//! @}
|
|
|