eOp_meat.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 eOp
00018 //! @{
00019 
00020 
00021 
00022 template<typename T1, typename eop_type>
00023 eOp<T1, eop_type>::eOp(const Base<typename T1::elem_type, T1>& in_m)
00024   : P(in_m.get_ref())
00025   , aux(aux)
00026   , aux_u32_a(aux_u32_a)
00027   , aux_u32_b(aux_u32_b)
00028   {
00029   arma_extra_debug_sigprint();
00030   
00031   arma_debug_check( (eop_type::size_ok(P.n_rows, P.n_cols) == false), eop_type::error_msg() );
00032   }
00033   
00034 
00035 
00036 template<typename T1, typename eop_type>
00037 eOp<T1, eop_type>::eOp(const Base<typename T1::elem_type, T1>& in_m, const typename T1::elem_type in_aux)
00038   : P(in_m.get_ref())
00039   , aux(in_aux)
00040   , aux_u32_a(aux_u32_a)
00041   , aux_u32_b(aux_u32_b)
00042   {
00043   arma_extra_debug_sigprint();
00044   
00045   arma_debug_check( (eop_type::size_ok(P.n_rows, P.n_cols) == false), eop_type::error_msg() );
00046   }
00047   
00048 
00049 
00050 template<typename T1, typename eop_type>
00051 eOp<T1, eop_type>::eOp(const Base<typename T1::elem_type, T1>& in_m, const u32 in_aux_u32_a, const u32 in_aux_u32_b)
00052   : P(in_m.get_ref())
00053   , aux(aux)
00054   , aux_u32_a(in_aux_u32_a)
00055   , aux_u32_b(in_aux_u32_b)
00056   {
00057   arma_extra_debug_sigprint();
00058   
00059   arma_debug_check( (eop_type::size_ok(P.n_rows, P.n_cols) == false), eop_type::error_msg() );
00060   }
00061 
00062 
00063 
00064 template<typename T1, typename eop_type>
00065 eOp<T1, eop_type>::eOp(const Base<typename T1::elem_type, T1>& in_m, const typename T1::elem_type in_aux, const u32 in_aux_u32_a, const u32 in_aux_u32_b)
00066   : P(in_m.get_ref())
00067   , aux(in_aux)
00068   , aux_u32_a(in_aux_u32_a)
00069   , aux_u32_b(in_aux_u32_b)
00070   {
00071   arma_extra_debug_sigprint();
00072   
00073   arma_debug_check( (eop_type::size_ok(P.n_rows, P.n_cols) == false), eop_type::error_msg() );
00074   }
00075 
00076 
00077 
00078 template<typename T1, typename eop_type>
00079 eOp<T1, eop_type>::eOp(const u32 in_n_rows, const u32 in_n_cols)
00080   : P(in_n_rows, in_n_cols)
00081   , aux(aux)
00082   , aux_u32_a(aux_u32_a)
00083   , aux_u32_b(aux_u32_b)
00084   {
00085   arma_extra_debug_sigprint();
00086   
00087   arma_debug_check( (eop_type::size_ok(P.n_rows, P.n_cols) == false), eop_type::error_msg() );
00088   }
00089   
00090 
00091 
00092 template<typename T1, typename eop_type>
00093 eOp<T1, eop_type>::~eOp()
00094   {
00095   arma_extra_debug_sigprint();
00096   }
00097 
00098 
00099 
00100 //! @}