op_princomp_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 // - Dimitrios Bouzas (dimitris dot mpouzas at gmail dot com)
00006 // - Conrad Sanderson (conradsand at ieee dot org)
00007 // 
00008 // This file is part of the Armadillo C++ library.
00009 // It is provided without any warranty of fitness
00010 // for any purpose. You can redistribute this file
00011 // and/or modify it under the terms of the GNU
00012 // Lesser General Public License (LGPL) as published
00013 // by the Free Software Foundation, either version 3
00014 // of the License or (at your option) any later version.
00015 // (see http://www.opensource.org/licenses for more info)
00016 
00017 
00018 //! \addtogroup op_princomp
00019 //! @{
00020 
00021 
00022 
00023 class op_princomp
00024   {
00025   public:
00026   
00027   // real element versions
00028   
00029   template<typename eT>
00030   inline static void
00031   direct_princomp
00032     (      
00033           Mat<eT>& coeff_out,                                                     
00034     const Mat<eT>& in
00035     );
00036                                                            
00037   template<typename eT>
00038   inline static void
00039   direct_princomp
00040     (      
00041           Mat<eT>& coeff_out, 
00042           Mat<eT>& score_out,
00043     const Mat<eT>& in
00044     );
00045                                                            
00046   template<typename eT>
00047   inline static void
00048   direct_princomp
00049     (
00050           Mat<eT>& coeff_out, 
00051           Mat<eT>& score_out, 
00052           Col<eT>& latent_out,                    
00053     const Mat<eT>& in
00054     );
00055     
00056   template<typename eT>
00057   inline static void
00058   direct_princomp
00059     (
00060           Mat<eT>& coeff_out, 
00061           Mat<eT>& score_out, 
00062           Col<eT>& latent_out, 
00063           Col<eT>& tsquared_out, 
00064     const Mat<eT>& in
00065     );  
00066   
00067   
00068   // complex element versions
00069   
00070   template<typename T>
00071   inline static void
00072   direct_princomp
00073     (
00074           Mat< std::complex<T> >& coeff_out,
00075     const Mat< std::complex<T> >& in
00076     );
00077     
00078   template<typename T>
00079   inline static void
00080   direct_princomp
00081     (
00082           Mat< std::complex<T> >& coeff_out, 
00083           Mat< std::complex<T> >& score_out,                                                   
00084     const Mat< std::complex<T> >& in
00085     );
00086     
00087   template<typename T>
00088   inline static void
00089   direct_princomp
00090     (
00091           Mat< std::complex<T> >& coeff_out, 
00092           Mat< std::complex<T> >& score_out, 
00093                           Col<T>& latent_out,                                   
00094     const Mat< std::complex<T> >& in
00095     );
00096     
00097   template<typename T>
00098   inline static void
00099   direct_princomp
00100     (
00101           Mat< std::complex<T> >& coeff_out, 
00102           Mat< std::complex<T> >& score_out, 
00103                           Col<T>& latent_out, 
00104           Col< std::complex<T> >& tsquared_out, 
00105     const Mat< std::complex<T> >& in    
00106     );
00107   
00108   
00109   template<typename T1>
00110   inline static void
00111   apply(Mat<typename T1::elem_type>& out, const Op<T1,op_princomp>& in);
00112   
00113   };
00114 
00115 
00116 
00117 //! @}