operator_ostream.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 
00016 
00017 
00018 
00019 template<typename eT, typename T1>
00020 inline
00021 std::ostream&
00022 operator<< (std::ostream& o, const Base<eT,T1>& X)
00023   {
00024   arma_extra_debug_sigprint();
00025   
00026   const unwrap<T1> tmp(X.get_ref());
00027   
00028   arma_ostream::print(o, tmp.M, true);
00029   
00030   return o;
00031   }
00032 
00033 
00034 
00035 template<typename T1>
00036 inline
00037 std::ostream&
00038 operator<< (std::ostream& o, const BaseCube<typename T1::elem_type,T1>& X)
00039   {
00040   arma_extra_debug_sigprint();
00041   
00042   const unwrap_cube<T1> tmp(X.get_ref());
00043   
00044   arma_ostream::print(o, tmp.M, true);
00045   
00046   return o;
00047   }
00048 
00049 
00050 
00052 template<typename T1>
00053 inline
00054 std::ostream&
00055 operator<< (std::ostream& o, const field<T1>& X)
00056   {
00057   arma_extra_debug_sigprint();
00058   
00059   arma_ostream::print(o, X);
00060   
00061   return o;
00062   }
00063 
00064 
00065 
00067 template<typename T1>
00068 inline
00069 std::ostream&
00070 operator<< (std::ostream& o, const subview_field<T1>& X)
00071   {
00072   arma_extra_debug_sigprint();
00073   
00074   arma_ostream::print(o, X);
00075 
00076   return o;
00077   }
00078 
00079 
00080 


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