glue_cube_minus_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_minus
00017 //! @{
00018 
00019 
00020 
00021 //! Class which implements the immediate subtraction of cubes
00022 class glue_cube_minus
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_minus>& 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   template<typename eT>
00040   inline static void apply(Cube<eT>& out, const Cube<eT>& A, const Cube<eT>& B);
00041   
00042   template<typename eT>
00043   inline static void apply(Cube<eT>& out, const Cube<eT>& A, const Cube<eT>& B, const Cube<eT>& C);
00044   
00045   
00046   #if defined(ARMA_GOOD_COMPILER)
00047   
00048   
00049   template<typename eT>
00050   inline static void apply(Cube<eT>& out, const GlueCube< Cube<eT>, Cube<eT>, glue_cube_minus>& X);
00051   
00052   template<typename eT>
00053   inline static void apply(Cube<eT>& out, const GlueCube< GlueCube< Cube<eT>,Cube<eT>,glue_cube_minus>, Cube<eT>, glue_cube_minus>& X);
00054   
00055   template<typename T1, typename T2>
00056   inline static void apply_inplace(Cube<typename T1::elem_type>& out, const GlueCube<T1, T2, glue_cube_minus>& X);
00057 
00058 
00059   #endif
00060   
00061   };
00062 
00063 
00064 
00065 //! @}