fn_cumsum.hpp
Go to the documentation of this file.
00001 // Copyright (C) 2010 NICTA (www.nicta.com.au)
00002 // Copyright (C) 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 T1>
00020 arma_inline
00021 const Op<T1, op_cumsum_mat>
00022 cumsum(const Base<typename T1::elem_type,T1>& X, const uword dim = 0)
00023   {
00024   arma_extra_debug_sigprint();
00025 
00026   return Op<T1, op_cumsum_mat>(X.get_ref(), dim, 0);
00027   }
00028 
00029 
00030 
00031 template<typename eT>
00032 arma_inline
00033 const Op<Row<eT>, op_cumsum_vec>
00034 cumsum(const Row<eT>& A)
00035   {
00036   arma_extra_debug_sigprint();
00037   
00038   return Op<Row<eT>, op_cumsum_vec>(A);
00039   }
00040 
00041 
00042 
00043 template<typename eT>
00044 arma_inline
00045 const Op<Col<eT>, op_cumsum_vec>
00046 cumsum(const Col<eT>& A)
00047   {
00048   arma_extra_debug_sigprint();
00049   
00050   return Op<Col<eT>, op_cumsum_vec>(A);
00051   }
00052 
00053 
00054 
00055 template<typename eT>
00056 arma_inline
00057 const Op<subview_row<eT>, op_cumsum_vec>
00058 cumsum(const subview_row<eT>& A)
00059   {
00060   arma_extra_debug_sigprint();
00061   
00062   return Op<subview_row<eT>, op_cumsum_vec>(A);
00063   }
00064 
00065 
00066 
00067 template<typename eT>
00068 arma_inline
00069 const Op<subview_col<eT>, op_cumsum_vec>
00070 cumsum(const subview_col<eT>& A)
00071   {
00072   arma_extra_debug_sigprint();
00073   
00074   return Op<subview_col<eT>, op_cumsum_vec>(A);
00075   }
00076 
00077 
00078 
00079 template<typename eT>
00080 arma_inline
00081 const Op<diagview<eT>, op_cumsum_vec>
00082 cumsum(const diagview<eT>& A)
00083   {
00084   arma_extra_debug_sigprint();
00085   
00086   return Op<diagview<eT>, op_cumsum_vec>(A);
00087   }
00088 
00089 
00090 
00091 template<typename eT, typename T1>
00092 arma_inline
00093 const Op<subview_elem1<eT,T1>, op_cumsum_vec>
00094 cumsum(const subview_elem1<eT,T1>& A)
00095   {
00096   arma_extra_debug_sigprint();
00097   
00098   return Op<subview_elem1<eT,T1>, op_cumsum_vec>(A);
00099   }
00100 
00101 
00102 


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:03