annotate armadillo-3.900.4/include/armadillo_bits/op_princomp_bones.hpp @ 84:55a047986812 tip

Update library URI so as not to be document-local
author Chris Cannam
date Wed, 22 Apr 2020 14:21:57 +0100
parents 1ec0e2823891
children
rev   line source
Chris@49 1 // Copyright (C) 2010-2012 NICTA (www.nicta.com.au)
Chris@49 2 // Copyright (C) 2010-2012 Conrad Sanderson
Chris@49 3 // Copyright (C) 2010 Dimitrios Bouzas
Chris@49 4 //
Chris@49 5 // This Source Code Form is subject to the terms of the Mozilla Public
Chris@49 6 // License, v. 2.0. If a copy of the MPL was not distributed with this
Chris@49 7 // file, You can obtain one at http://mozilla.org/MPL/2.0/.
Chris@49 8
Chris@49 9
Chris@49 10 //! \addtogroup op_princomp
Chris@49 11 //! @{
Chris@49 12
Chris@49 13
Chris@49 14
Chris@49 15 class op_princomp
Chris@49 16 {
Chris@49 17 public:
Chris@49 18
Chris@49 19 //
Chris@49 20 // real element versions
Chris@49 21
Chris@49 22 template<typename T1>
Chris@49 23 inline static bool
Chris@49 24 direct_princomp
Chris@49 25 (
Chris@49 26 Mat<typename T1::elem_type>& coeff_out,
Chris@49 27 const Base<typename T1::elem_type, T1>& X,
Chris@49 28 const typename arma_not_cx<typename T1::elem_type>::result* junk = 0
Chris@49 29 );
Chris@49 30
Chris@49 31 template<typename T1>
Chris@49 32 inline static bool
Chris@49 33 direct_princomp
Chris@49 34 (
Chris@49 35 Mat<typename T1::elem_type>& coeff_out,
Chris@49 36 Mat<typename T1::elem_type>& score_out,
Chris@49 37 const Base<typename T1::elem_type, T1>& X,
Chris@49 38 const typename arma_not_cx<typename T1::elem_type>::result* junk = 0
Chris@49 39 );
Chris@49 40
Chris@49 41 template<typename T1>
Chris@49 42 inline static bool
Chris@49 43 direct_princomp
Chris@49 44 (
Chris@49 45 Mat<typename T1::elem_type>& coeff_out,
Chris@49 46 Mat<typename T1::elem_type>& score_out,
Chris@49 47 Col<typename T1::elem_type>& latent_out,
Chris@49 48 const Base<typename T1::elem_type, T1>& X,
Chris@49 49 const typename arma_not_cx<typename T1::elem_type>::result* junk = 0
Chris@49 50 );
Chris@49 51
Chris@49 52 template<typename T1>
Chris@49 53 inline static bool
Chris@49 54 direct_princomp
Chris@49 55 (
Chris@49 56 Mat<typename T1::elem_type>& coeff_out,
Chris@49 57 Mat<typename T1::elem_type>& score_out,
Chris@49 58 Col<typename T1::elem_type>& latent_out,
Chris@49 59 Col<typename T1::elem_type>& tsquared_out,
Chris@49 60 const Base<typename T1::elem_type, T1>& X,
Chris@49 61 const typename arma_not_cx<typename T1::elem_type>::result* junk = 0
Chris@49 62 );
Chris@49 63
Chris@49 64
Chris@49 65 //
Chris@49 66 // complex element versions
Chris@49 67
Chris@49 68 template<typename T1>
Chris@49 69 inline static bool
Chris@49 70 direct_princomp
Chris@49 71 (
Chris@49 72 Mat< std::complex<typename T1::pod_type> >& coeff_out,
Chris@49 73 const Base< std::complex<typename T1::pod_type>, T1 >& X,
Chris@49 74 const typename arma_cx_only<typename T1::elem_type>::result* junk = 0
Chris@49 75 );
Chris@49 76
Chris@49 77 template<typename T1>
Chris@49 78 inline static bool
Chris@49 79 direct_princomp
Chris@49 80 (
Chris@49 81 Mat< std::complex<typename T1::pod_type> >& coeff_out,
Chris@49 82 Mat< std::complex<typename T1::pod_type> >& score_out,
Chris@49 83 const Base< std::complex<typename T1::pod_type>, T1 >& X,
Chris@49 84 const typename arma_cx_only<typename T1::elem_type>::result* junk = 0
Chris@49 85 );
Chris@49 86
Chris@49 87 template<typename T1>
Chris@49 88 inline static bool
Chris@49 89 direct_princomp
Chris@49 90 (
Chris@49 91 Mat< std::complex<typename T1::pod_type> >& coeff_out,
Chris@49 92 Mat< std::complex<typename T1::pod_type> >& score_out,
Chris@49 93 Col< typename T1::pod_type >& latent_out,
Chris@49 94 const Base< std::complex<typename T1::pod_type>, T1 >& X,
Chris@49 95 const typename arma_cx_only<typename T1::elem_type>::result* junk = 0
Chris@49 96 );
Chris@49 97
Chris@49 98 template<typename T1>
Chris@49 99 inline static bool
Chris@49 100 direct_princomp
Chris@49 101 (
Chris@49 102 Mat< std::complex<typename T1::pod_type> >& coeff_out,
Chris@49 103 Mat< std::complex<typename T1::pod_type> >& score_out,
Chris@49 104 Col< typename T1::pod_type >& latent_out,
Chris@49 105 Col< std::complex<typename T1::pod_type> >& tsquared_out,
Chris@49 106 const Base< std::complex<typename T1::pod_type>, T1 >& X,
Chris@49 107 const typename arma_cx_only<typename T1::elem_type>::result* junk = 0
Chris@49 108 );
Chris@49 109
Chris@49 110
Chris@49 111 template<typename T1>
Chris@49 112 inline static void
Chris@49 113 apply(Mat<typename T1::elem_type>& out, const Op<T1,op_princomp>& in);
Chris@49 114
Chris@49 115 };
Chris@49 116
Chris@49 117
Chris@49 118
Chris@49 119 //! @}