glue_cube_div_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_div
00017 //! @{
00018 
00019 
00020 //! Class which implements the immediate element-wise division of two or more cubes
00021 class glue_cube_div
00022   {
00023   public:
00024   
00025   
00026   template<typename T1, typename T2>
00027   inline static void apply(Cube<typename T1::elem_type>& out, const GlueCube<T1,T2,glue_cube_div>& X);
00028   
00029   
00030   template<typename T1>
00031   inline static void apply_inplace(Cube<typename T1::elem_type>& out, const T1& X);
00032   
00033   
00034   template<typename eT1, typename eT2>
00035   inline static void apply_mixed(Cube<typename promote_type<eT1,eT2>::result>& out, const Cube<eT1>& X, const Cube<eT2>& Y);
00036   
00037 
00038   template<typename eT>
00039   inline static void apply(Cube<eT>& out, const Cube<eT>& A, const Cube<eT>& B);
00040   
00041   template<typename eT>
00042   inline static void apply(Cube<eT>& out, const Cube<eT>& A, const Cube<eT>& B, const Cube<eT>& C);
00043   
00044   
00045   #if defined(ARMA_GOOD_COMPILER)
00046   
00047   
00048   template<typename eT>
00049   inline static void apply(Cube<eT>& out, const GlueCube<Cube<eT>,Cube<eT>,glue_cube_div>& X);
00050   
00051   template<typename eT>
00052   inline static void apply(Cube<eT>& out, const GlueCube< GlueCube<Cube<eT>,Cube<eT>, glue_cube_div>, Cube<eT>, glue_cube_div>& X);
00053   
00054   
00055   #endif
00056   
00057   };
00058 
00059 
00060 
00061 //! @}
00062