1 // SPDX-License-Identifier: Apache-2.0
2 //
3 // Copyright 2008-2016 Conrad Sanderson (http://conradsanderson.id.au)
4 // Copyright 2008-2016 National ICT Australia (NICTA)
5 //
6 // Licensed under the Apache License, Version 2.0 (the "License");
7 // you may not use this file except in compliance with the License.
8 // You may obtain a copy of the License at
9 // http://www.apache.org/licenses/LICENSE-2.0
10 //
11 // Unless required by applicable law or agreed to in writing, software
12 // distributed under the License is distributed on an "AS IS" BASIS,
13 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 // See the License for the specific language governing permissions and
15 // limitations under the License.
16 // ------------------------------------------------------------------------
17
18
19 //! \addtogroup fn_trans
20 //! @{
21
22
23 template<typename T1>
24 arma_warn_unused
25 arma_inline
26 const Op<T1, op_htrans>
trans(const T1 & X,const typename enable_if<is_arma_type<T1>::value>::result * junk=nullptr)27 trans
28 (
29 const T1& X,
30 const typename enable_if< is_arma_type<T1>::value >::result* junk = nullptr
31 )
32 {
33 arma_extra_debug_sigprint();
34 arma_ignore(junk);
35
36 return Op<T1, op_htrans>(X);
37 }
38
39
40
41 template<typename T1>
42 arma_warn_unused
43 arma_inline
44 const Op<T1, op_htrans>
htrans(const T1 & X,const typename enable_if<is_arma_type<T1>::value>::result * junk=nullptr)45 htrans
46 (
47 const T1& X,
48 const typename enable_if< is_arma_type<T1>::value >::result* junk = nullptr
49 )
50 {
51 arma_extra_debug_sigprint();
52 arma_ignore(junk);
53
54 return Op<T1, op_htrans>(X);
55 }
56
57
58
59 //
60 // handling of sparse matrices
61
62
63 template<typename T1>
64 arma_warn_unused
65 arma_inline
66 const SpOp<T1, spop_htrans>
trans(const T1 & X,const typename enable_if<is_arma_sparse_type<T1>::value>::result * junk=nullptr)67 trans
68 (
69 const T1& X,
70 const typename enable_if< is_arma_sparse_type<T1>::value >::result* junk = nullptr
71 )
72 {
73 arma_extra_debug_sigprint();
74 arma_ignore(junk);
75
76 return SpOp<T1, spop_htrans>(X);
77 }
78
79
80
81 template<typename T1>
82 arma_warn_unused
83 arma_inline
84 const SpOp<T1, spop_htrans>
htrans(const T1 & X,const typename enable_if<is_arma_sparse_type<T1>::value>::result * junk=nullptr)85 htrans
86 (
87 const T1& X,
88 const typename enable_if< is_arma_sparse_type<T1>::value >::result* junk = nullptr
89 )
90 {
91 arma_extra_debug_sigprint();
92 arma_ignore(junk);
93
94 return SpOp<T1, spop_htrans>(X);
95 }
96
97
98
99 //! @}
100