41 lines
969 B
C++
41 lines
969 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_times
|
|
//! @{
|
|
|
|
|
|
|
|
class spglue_times
|
|
{
|
|
public:
|
|
|
|
template<typename T1, typename T2>
|
|
inline static void apply(SpMat<typename T1::elem_type>& out, const SpGlue<T1,T2,spglue_times>& X);
|
|
|
|
template<typename eT, typename T1, typename T2>
|
|
arma_hot inline static void apply_noalias(SpMat<eT>& c, const SpProxy<T1>& pa, const SpProxy<T2>& pb);
|
|
};
|
|
|
|
|
|
|
|
class spglue_times2
|
|
{
|
|
public:
|
|
|
|
template<typename T1, typename T2>
|
|
inline static void apply(SpMat<typename T1::elem_type>& out, const SpGlue<T1,T2,spglue_times2>& X);
|
|
};
|
|
|
|
|
|
|
|
//! @}
|
|
|