Chris@49
|
1 // Copyright (C) 2008-2012 NICTA (www.nicta.com.au)
|
Chris@49
|
2 // Copyright (C) 2008-2012 Conrad Sanderson
|
Chris@49
|
3 //
|
Chris@49
|
4 // This Source Code Form is subject to the terms of the Mozilla Public
|
Chris@49
|
5 // License, v. 2.0. If a copy of the MPL was not distributed with this
|
Chris@49
|
6 // file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
Chris@49
|
7
|
Chris@49
|
8
|
Chris@49
|
9 //! \addtogroup op_htrans
|
Chris@49
|
10 //! @{
|
Chris@49
|
11
|
Chris@49
|
12
|
Chris@49
|
13 //! 'hermitian transpose' operation
|
Chris@49
|
14
|
Chris@49
|
15 class op_htrans
|
Chris@49
|
16 {
|
Chris@49
|
17 public:
|
Chris@49
|
18
|
Chris@49
|
19 template<typename eT>
|
Chris@49
|
20 arma_hot arma_inline static void apply_noalias(Mat<eT>& out, const Mat<eT>& A, const typename arma_not_cx<eT>::result* junk = 0);
|
Chris@49
|
21
|
Chris@49
|
22 template<typename eT>
|
Chris@49
|
23 arma_hot inline static void apply_noalias(Mat<eT>& out, const Mat<eT>& A, const typename arma_cx_only<eT>::result* junk = 0);
|
Chris@49
|
24
|
Chris@49
|
25 //
|
Chris@49
|
26
|
Chris@49
|
27 template<typename eT>
|
Chris@49
|
28 arma_hot arma_inline static void apply(Mat<eT>& out, const Mat<eT>& A, const typename arma_not_cx<eT>::result* junk = 0);
|
Chris@49
|
29
|
Chris@49
|
30 template<typename eT>
|
Chris@49
|
31 arma_hot inline static void apply(Mat<eT>& out, const Mat<eT>& A, const typename arma_cx_only<eT>::result* junk = 0);
|
Chris@49
|
32
|
Chris@49
|
33 //
|
Chris@49
|
34
|
Chris@49
|
35 template<typename T1>
|
Chris@49
|
36 arma_hot inline static void apply_proxy(Mat<typename T1::elem_type>& out, const T1& X);
|
Chris@49
|
37
|
Chris@49
|
38 //
|
Chris@49
|
39
|
Chris@49
|
40 template<typename T1>
|
Chris@49
|
41 arma_hot inline static void apply(Mat<typename T1::elem_type>& out, const Op<T1,op_htrans>& in, const typename arma_not_cx<typename T1::elem_type>::result* junk = 0);
|
Chris@49
|
42
|
Chris@49
|
43 template<typename T1>
|
Chris@49
|
44 arma_hot inline static void apply(Mat<typename T1::elem_type>& out, const Op<T1,op_htrans>& in, const typename arma_cx_only<typename T1::elem_type>::result* junk = 0);
|
Chris@49
|
45
|
Chris@49
|
46 //
|
Chris@49
|
47
|
Chris@49
|
48 template<typename T1>
|
Chris@49
|
49 arma_hot inline static void apply(Mat<typename T1::elem_type>& out, const Op< Op<T1, op_trimat>, op_htrans>& in);
|
Chris@49
|
50 };
|
Chris@49
|
51
|
Chris@49
|
52
|
Chris@49
|
53
|
Chris@49
|
54 class op_htrans2
|
Chris@49
|
55 {
|
Chris@49
|
56 public:
|
Chris@49
|
57
|
Chris@49
|
58 template<typename eT>
|
Chris@49
|
59 arma_hot inline static void apply_noalias(Mat<eT>& out, const Mat<eT>& A, const eT val);
|
Chris@49
|
60
|
Chris@49
|
61 template<typename eT>
|
Chris@49
|
62 arma_hot inline static void apply(Mat<eT>& out, const Mat<eT>& A, const eT val);
|
Chris@49
|
63
|
Chris@49
|
64 //
|
Chris@49
|
65
|
Chris@49
|
66 template<typename T1>
|
Chris@49
|
67 arma_hot inline static void apply_proxy(Mat<typename T1::elem_type>& out, const T1& X, const typename T1::elem_type val);
|
Chris@49
|
68
|
Chris@49
|
69 //
|
Chris@49
|
70
|
Chris@49
|
71 template<typename T1>
|
Chris@49
|
72 arma_hot inline static void apply(Mat<typename T1::elem_type>& out, const Op<T1,op_htrans2>& in, const typename arma_not_cx<typename T1::elem_type>::result* junk = 0);
|
Chris@49
|
73
|
Chris@49
|
74 template<typename T1>
|
Chris@49
|
75 arma_hot inline static void apply(Mat<typename T1::elem_type>& out, const Op<T1,op_htrans2>& in, const typename arma_cx_only<typename T1::elem_type>::result* junk = 0);
|
Chris@49
|
76 };
|
Chris@49
|
77
|
Chris@49
|
78
|
Chris@49
|
79
|
Chris@49
|
80 //! @}
|