glue_cube_plus_proto.hpp

Go to the documentation of this file.
00001 // Copyright (C) 2009 NICTA
00002 // 
00003 // Authors:
00004 // - Conrad Sanderson (conradsand at ieee dot org)
00005 // 
00006 // This file is part of the Armadillo C++ library.
00007 // It is provided without any warranty of fitness
00008 // for any purpose. You can redistribute this file
00009 // and/or modify it under the terms of the GNU
00010 // Lesser General Public License (LGPL) as published
00011 // by the Free Software Foundation, either version 3
00012 // of the License or (at your option) any later version.
00013 // (see http://www.opensource.org/licenses for more info)
00014 
00015 
00016 //! \addtogroup glue_cube_plus
00017 //! @{
00018 
00019 
00020 
00021 //! Class which implements the immediate addition of cubes
00022 class glue_cube_plus
00023   {
00024   public:
00025   
00026   
00027   template<typename T1, typename T2>
00028   inline static void apply(Cube<typename T1::elem_type>& out, const GlueCube<T1, T2, glue_cube_plus>& X);
00029   
00030   
00031   template<typename T1>
00032   inline static void apply_inplace(Cube<typename T1::elem_type>& out, const T1& X);
00033   
00034   
00035   template<typename eT1, typename eT2>
00036   inline static void apply_mixed(Cube<typename promote_type<eT1,eT2>::result>& out, const Cube<eT1>& X, const Cube<eT2>& Y);
00037   
00038 
00039 
00040   template<typename eT>
00041   inline static void apply(Cube<eT>& out, const Cube<eT>& A, const Cube<eT>& B);
00042   
00043   template<typename eT>
00044   inline static void apply(Cube<eT>& out, const Cube<eT>& A, const Cube<eT>& B, const Cube<eT>& C);
00045   
00046   
00047   #if defined(ARMA_GOOD_COMPILER)
00048   
00049   
00050   template<typename eT>
00051   inline static void apply(Cube<eT>& out, const GlueCube<Cube<eT>, Cube<eT>, glue_cube_plus>& X);
00052   
00053   template<typename eT>
00054   inline static void apply(Cube<eT>& out, const GlueCube< GlueCube<Cube<eT>,Cube<eT>,glue_cube_plus>, Cube<eT>, glue_cube_plus>& X);
00055   
00056   
00057   template<typename eT>
00058   inline static void apply(Cube<eT>& out, const GlueCube<Cube<eT>, subview_cube<eT>, glue_cube_plus>& X);
00059   
00060   template<typename eT>
00061   inline static void apply(Cube<eT>& out, const GlueCube<subview_cube<eT>, Cube<eT>, glue_cube_plus>& X);
00062   
00063   template<typename eT>
00064   inline static void apply(Cube<eT>& out, const GlueCube<subview_cube<eT>, subview_cube<eT>, glue_cube_plus>& X);
00065   
00066   
00067   template<typename T1>
00068   inline static void apply_inplace(Cube<typename T1::elem_type>& out, const OpCube<T1, op_square>& X);
00069   
00070   template<typename T1, typename T2>
00071   inline static void apply_inplace(Cube<typename T1::elem_type>& out, const GlueCube<T1, T2, glue_cube_plus>& X);
00072   
00073   
00074   #endif
00075   
00076   
00077   };
00078 
00079 
00080 
00081 //! @}