comparison armadillo-3.900.4/include/armadillo_bits/eOpCube_meat.hpp @ 49:1ec0e2823891

Switch to using subrepo copies of qm-dsp, nnls-chroma, vamp-plugin-sdk; update Armadillo version; assume build without external BLAS/LAPACK
author Chris Cannam
date Thu, 13 Jun 2013 10:25:24 +0100
parents
children
comparison
equal deleted inserted replaced
48:69251e11a913 49:1ec0e2823891
1 // Copyright (C) 2010-2013 NICTA (www.nicta.com.au)
2 // Copyright (C) 2010-2013 Conrad Sanderson
3 //
4 // This Source Code Form is subject to the terms of the Mozilla Public
5 // License, v. 2.0. If a copy of the MPL was not distributed with this
6 // file, You can obtain one at http://mozilla.org/MPL/2.0/.
7
8
9 //! \addtogroup eOpCube
10 //! @{
11
12
13
14 template<typename T1, typename eop_type>
15 eOpCube<T1, eop_type>::eOpCube(const BaseCube<typename T1::elem_type, T1>& in_m)
16 : P (in_m.get_ref())
17 {
18 arma_extra_debug_sigprint();
19 }
20
21
22
23 template<typename T1, typename eop_type>
24 eOpCube<T1, eop_type>::eOpCube(const BaseCube<typename T1::elem_type, T1>& in_m, const typename T1::elem_type in_aux)
25 : P (in_m.get_ref())
26 , aux (in_aux)
27 {
28 arma_extra_debug_sigprint();
29 }
30
31
32
33 template<typename T1, typename eop_type>
34 eOpCube<T1, eop_type>::eOpCube(const BaseCube<typename T1::elem_type, T1>& in_m, const uword in_aux_uword_a, const uword in_aux_uword_b)
35 : P (in_m.get_ref())
36 , aux_uword_a (in_aux_uword_a)
37 , aux_uword_b (in_aux_uword_b)
38 {
39 arma_extra_debug_sigprint();
40 }
41
42
43
44 template<typename T1, typename eop_type>
45 eOpCube<T1, eop_type>::eOpCube(const BaseCube<typename T1::elem_type, T1>& in_m, const uword in_aux_uword_a, const uword in_aux_uword_b, const uword in_aux_uword_c)
46 : P (in_m.get_ref())
47 , aux_uword_a (in_aux_uword_a)
48 , aux_uword_b (in_aux_uword_b)
49 , aux_uword_c (in_aux_uword_c)
50 {
51 arma_extra_debug_sigprint();
52 }
53
54
55
56 template<typename T1, typename eop_type>
57 eOpCube<T1, eop_type>::eOpCube(const BaseCube<typename T1::elem_type, T1>& in_m, const typename T1::elem_type in_aux, const uword in_aux_uword_a, const uword in_aux_uword_b, const uword in_aux_uword_c)
58 : P (in_m.get_ref())
59 , aux (in_aux)
60 , aux_uword_a (in_aux_uword_a)
61 , aux_uword_b (in_aux_uword_b)
62 , aux_uword_c (in_aux_uword_c)
63 {
64 arma_extra_debug_sigprint();
65 }
66
67
68
69 template<typename T1, typename eop_type>
70 eOpCube<T1, eop_type>::~eOpCube()
71 {
72 arma_extra_debug_sigprint();
73 }
74
75
76
77 template<typename T1, typename eop_type>
78 arma_inline
79 uword
80 eOpCube<T1, eop_type>::get_n_rows() const
81 {
82 return P.get_n_rows();
83 }
84
85
86
87 template<typename T1, typename eop_type>
88 arma_inline
89 uword
90 eOpCube<T1, eop_type>::get_n_cols() const
91 {
92 return P.get_n_cols();
93 }
94
95
96
97 template<typename T1, typename eop_type>
98 arma_inline
99 uword
100 eOpCube<T1, eop_type>::get_n_elem_slice() const
101 {
102 return P.get_n_elem_slice();
103 }
104
105
106
107 template<typename T1, typename eop_type>
108 arma_inline
109 uword
110 eOpCube<T1, eop_type>::get_n_slices() const
111 {
112 return P.get_n_slices();
113 }
114
115
116
117 template<typename T1, typename eop_type>
118 arma_inline
119 uword
120 eOpCube<T1, eop_type>::get_n_elem() const
121 {
122 return P.get_n_elem();
123 }
124
125
126
127 template<typename T1, typename eop_type>
128 arma_inline
129 typename T1::elem_type
130 eOpCube<T1, eop_type>::operator[] (const uword i) const
131 {
132 return eop_core<eop_type>::process(P[i], aux);
133 }
134
135
136
137 template<typename T1, typename eop_type>
138 arma_inline
139 typename T1::elem_type
140 eOpCube<T1, eop_type>::at(const uword row, const uword col, const uword slice) const
141 {
142 return eop_core<eop_type>::process(P.at(row, col, slice), aux);
143 }
144
145
146
147 template<typename T1, typename eop_type>
148 arma_inline
149 typename T1::elem_type
150 eOpCube<T1, eop_type>::at_alt(const uword i) const
151 {
152 return eop_core<eop_type>::process(P.at_alt(i), aux);
153 }
154
155
156
157 //! @}