comparison armadillo-2.4.4/include/armadillo_bits/op_princomp_bones.hpp @ 0:8b6102e2a9b0

Armadillo Library
author maxzanoni76 <max.zanoni@eecs.qmul.ac.uk>
date Wed, 11 Apr 2012 09:27:06 +0100
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:8b6102e2a9b0
1 // Copyright (C) 2010-2011 NICTA (www.nicta.com.au)
2 // Copyright (C) 2010-2011 Conrad Sanderson
3 // Copyright (C) 2010 Dimitrios Bouzas
4 //
5 // This file is part of the Armadillo C++ library.
6 // It is provided without any warranty of fitness
7 // for any purpose. You can redistribute this file
8 // and/or modify it under the terms of the GNU
9 // Lesser General Public License (LGPL) as published
10 // by the Free Software Foundation, either version 3
11 // of the License or (at your option) any later version.
12 // (see http://www.opensource.org/licenses for more info)
13
14
15 //! \addtogroup op_princomp
16 //! @{
17
18
19
20 class op_princomp
21 {
22 public:
23
24 // real element versions
25
26 template<typename eT>
27 inline static bool
28 direct_princomp
29 (
30 Mat<eT>& coeff_out,
31 const Mat<eT>& in
32 );
33
34 template<typename eT>
35 inline static bool
36 direct_princomp
37 (
38 Mat<eT>& coeff_out,
39 Mat<eT>& score_out,
40 const Mat<eT>& in
41 );
42
43 template<typename eT>
44 inline static bool
45 direct_princomp
46 (
47 Mat<eT>& coeff_out,
48 Mat<eT>& score_out,
49 Col<eT>& latent_out,
50 const Mat<eT>& in
51 );
52
53 template<typename eT>
54 inline static bool
55 direct_princomp
56 (
57 Mat<eT>& coeff_out,
58 Mat<eT>& score_out,
59 Col<eT>& latent_out,
60 Col<eT>& tsquared_out,
61 const Mat<eT>& in
62 );
63
64
65 // complex element versions
66
67 template<typename T>
68 inline static bool
69 direct_princomp
70 (
71 Mat< std::complex<T> >& coeff_out,
72 const Mat< std::complex<T> >& in
73 );
74
75 template<typename T>
76 inline static bool
77 direct_princomp
78 (
79 Mat< std::complex<T> >& coeff_out,
80 Mat< std::complex<T> >& score_out,
81 const Mat< std::complex<T> >& in
82 );
83
84 template<typename T>
85 inline static bool
86 direct_princomp
87 (
88 Mat< std::complex<T> >& coeff_out,
89 Mat< std::complex<T> >& score_out,
90 Col<T>& latent_out,
91 const Mat< std::complex<T> >& in
92 );
93
94 template<typename T>
95 inline static bool
96 direct_princomp
97 (
98 Mat< std::complex<T> >& coeff_out,
99 Mat< std::complex<T> >& score_out,
100 Col<T>& latent_out,
101 Col< std::complex<T> >& tsquared_out,
102 const Mat< std::complex<T> >& in
103 );
104
105
106 template<typename T1>
107 inline static void
108 apply(Mat<typename T1::elem_type>& out, const Op<T1,op_princomp>& in);
109
110 };
111
112
113
114 //! @}