op_var_bones.hpp
Go to the documentation of this file.
00001 // Copyright (C) 2009-2011 NICTA (www.nicta.com.au)
00002 // Copyright (C) 2009-2011 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 
00020 class op_var
00021   {
00022   public:
00023   
00024   template<typename eT>
00025   inline static eT direct_var(const eT* const X, const uword N, const uword norm_type = 0);
00026   
00027   template<typename T>
00028   inline static  T direct_var(const std::complex<T>* const X, const uword N, const uword norm_type = 0);
00029   
00030   
00031   template<typename eT>
00032   inline static typename get_pod_type<eT>::result direct_var(const subview_row<eT>& X, const uword norm_type = 0);
00033   
00034   template<typename eT>
00035   inline static typename get_pod_type<eT>::result direct_var(const subview_col<eT>& X, const uword norm_type = 0);
00036   
00037   template<typename eT>
00038   inline static typename get_pod_type<eT>::result direct_var(const diagview<eT>& X, const uword norm_type = 0);
00039   
00040   
00041   template<typename T1>
00042   inline static void apply(Mat<typename T1::pod_type>& out, const mtOp<typename T1::pod_type, T1, op_var>& in);
00043   
00044   
00045   template<typename eT>
00046   inline static eT direct_var_robust(const eT* const X, const uword N, const uword norm_type = 0);
00047   
00048   template<typename T>
00049   inline static  T direct_var_robust(const std::complex<T>* const X, const uword N, const uword norm_type = 0);
00050   };
00051 
00052 
00053 


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