operator_cube_times.hpp
Go to the documentation of this file.
00001 // Copyright (C) 2008-2010 NICTA (www.nicta.com.au)
00002 // Copyright (C) 2008-2010 Conrad Sanderson
00003 // 
00004 // This file is part of the Armadillo C++ library.
00005 // It is provided without any warranty of fitness
00006 // for any purpose. You can redistribute this file
00007 // and/or modify it under the terms of the GNU
00008 // Lesser General Public License (LGPL) as published
00009 // by the Free Software Foundation, either version 3
00010 // of the License or (at your option) any later version.
00011 // (see http://www.opensource.org/licenses for more info)
00012 
00013 
00014 
00015 
00018 
00019 
00020 
00022 template<typename T1>
00023 arma_inline
00024 const eOpCube<T1, eop_scalar_times>
00025 operator*
00026   (
00027   const BaseCube<typename T1::elem_type,T1>& X,
00028   const typename T1::elem_type               k
00029   )
00030   {
00031   arma_extra_debug_sigprint();
00032   
00033   return eOpCube<T1, eop_scalar_times>(X.get_ref(), k);
00034   }
00035 
00036 
00037 
00039 template<typename T1>
00040 arma_inline
00041 const eOpCube<T1, eop_scalar_times>
00042 operator*
00043   (
00044   const typename T1::elem_type               k,
00045   const BaseCube<typename T1::elem_type,T1>& X
00046   )
00047   {
00048   arma_extra_debug_sigprint();
00049   
00050   return eOpCube<T1, eop_scalar_times>(X.get_ref(), k);
00051   }
00052 
00053 
00054 
00056 template<typename T1>
00057 arma_inline
00058 const mtOpCube<typename std::complex<typename T1::pod_type>, T1, op_cx_scalar_times>
00059 operator*
00060   (
00061   const BaseCube<typename T1::pod_type, T1>& X,
00062   const std::complex<typename T1::pod_type>& k
00063   )
00064   {
00065   arma_extra_debug_sigprint();
00066   
00067   return mtOpCube<typename std::complex<typename T1::pod_type>, T1, op_cx_scalar_times>('j', X.get_ref(), k);
00068   }
00069 
00070 
00071 
00073 template<typename T1>
00074 arma_inline
00075 const mtOpCube<typename std::complex<typename T1::pod_type>, T1, op_cx_scalar_times>
00076 operator*
00077   (
00078   const std::complex<typename T1::pod_type>& k,
00079   const BaseCube<typename T1::pod_type, T1>& X
00080   )
00081   {
00082   arma_extra_debug_sigprint();
00083   
00084   return mtOpCube<typename std::complex<typename T1::pod_type>, T1, op_cx_scalar_times>('j', X.get_ref(), k);
00085   }
00086 
00087 
00088 


armadillo_matrix
Author(s): Conrad Sanderson - NICTA (www.nicta.com.au), (Wrapper by Sjoerd van den Dries)
autogenerated on Tue Jan 7 2014 11:42:05