eglue_core_proto.hpp

Go to the documentation of this file.
00001 // Copyright (C) 2010 NICTA and the authors listed below
00002 // http://nicta.com.au
00003 // 
00004 // Authors:
00005 // - Conrad Sanderson (conradsand at ieee dot org)
00006 // 
00007 // This file is part of the Armadillo C++ library.
00008 // It is provided without any warranty of fitness
00009 // for any purpose. You can redistribute this file
00010 // and/or modify it under the terms of the GNU
00011 // Lesser General Public License (LGPL) as published
00012 // by the Free Software Foundation, either version 3
00013 // of the License or (at your option) any later version.
00014 // (see http://www.opensource.org/licenses for more info)
00015 
00016 
00017 //! \addtogroup eglue_core
00018 //! @{
00019 
00020 
00021 
00022 template<typename eglue_type>
00023 struct eglue_core
00024   {
00025   
00026   template<typename T1, typename T2> arma_inline static typename T1::elem_type get_elem(const eGlue<T1, T2, eglue_type>& x, const u32 i);
00027   template<typename T1, typename T2> arma_inline static typename T1::elem_type get_elem(const eGlue<T1, T2, eglue_type>& x, const u32 row, const u32 col);
00028   
00029   template<typename T1, typename T2> arma_inline static void apply(Mat<typename T1::elem_type>& out, const eGlue<T1, T2, eglue_type>& x);
00030   
00031   template<typename T1, typename T2> arma_hot inline static void apply_proxy (Mat<typename T1::elem_type>& out, const eGlue<T1, T2, eglue_type>& x);
00032   template<typename T1, typename T2> arma_hot inline static void apply_unwrap(Mat<typename T1::elem_type>& out, const eGlue<T1, T2, eglue_type>& x);
00033     
00034   template<typename T1, typename T2> arma_hot inline static void apply_inplace_plus (Mat<typename T1::elem_type>& out, const eGlue<T1, T2, eglue_type>& x);
00035   template<typename T1, typename T2> arma_hot inline static void apply_inplace_minus(Mat<typename T1::elem_type>& out, const eGlue<T1, T2, eglue_type>& x);
00036   template<typename T1, typename T2> arma_hot inline static void apply_inplace_schur(Mat<typename T1::elem_type>& out, const eGlue<T1, T2, eglue_type>& x);
00037   template<typename T1, typename T2> arma_hot inline static void apply_inplace_div  (Mat<typename T1::elem_type>& out, const eGlue<T1, T2, eglue_type>& x);
00038   
00039   };
00040 
00041 
00042 
00043 class eglue_plus;
00044 class eglue_minus;
00045 class eglue_div;
00046 class eglue_schur;
00047 
00048 
00049 
00050 //! @}