mtOp_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 mtOp
00018 //! @{
00019 
00020 
00021 
00022 template<typename out_eT, typename T1, typename op_type>
00023 class mtOp : public Base<out_eT, mtOp<out_eT, T1, op_type> >
00024   {
00025   public:
00026   
00027   typedef          out_eT                       elem_type;
00028   typedef typename get_pod_type<out_eT>::result pod_type;
00029 
00030   typedef typename T1::elem_type                in_eT;
00031 
00032   inline explicit mtOp(const T1& in_m);
00033   inline          mtOp(const T1& in_m, const in_eT in_aux);
00034   inline          mtOp(const T1& in_m, const u32   in_aux_u32_a, const u32 in_aux_u32_b);
00035   inline          mtOp(const T1& in_m, const in_eT in_aux,       const u32 in_aux_u32_a, const u32 in_aux_u32_b);
00036   
00037   inline          mtOp(const char junk, const T1& in_m, const out_eT in_aux);
00038   
00039   inline         ~mtOp();
00040     
00041   
00042   const T1&    m;           //!< storage of reference to the operand (e.g. a matrix)
00043   const in_eT  aux;         //!< storage of auxiliary data, using the element type as used by T1
00044   const out_eT aux_out_eT;  //!< storage of auxiliary data, using the element type as specified by the out_eT template parameter
00045   const u32    aux_u32_a;   //!< storage of auxiliary data, u32 format
00046   const u32    aux_u32_b;   //!< storage of auxiliary data, u32 format
00047   
00048   };
00049 
00050 
00051 
00052 //! @}