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