comparison armadillo-3.900.4/include/armadillo_bits/eOpCube_bones.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 class eOpCube : public BaseCube<typename T1::elem_type, eOpCube<T1, eop_type> >
16 {
17 public:
18
19 typedef typename T1::elem_type elem_type;
20 typedef typename get_pod_type<elem_type>::result pod_type;
21
22 static const bool prefer_at_accessor = ProxyCube<T1>::prefer_at_accessor;
23 static const bool has_subview = ProxyCube<T1>::has_subview;
24
25 arma_aligned const ProxyCube<T1> P;
26 arma_aligned elem_type aux; //!< storage of auxiliary data, user defined format
27 arma_aligned uword aux_uword_a; //!< storage of auxiliary data, uword format
28 arma_aligned uword aux_uword_b; //!< storage of auxiliary data, uword format
29 arma_aligned uword aux_uword_c; //!< storage of auxiliary data, uword format
30
31 inline ~eOpCube();
32 inline explicit eOpCube(const BaseCube<typename T1::elem_type, T1>& in_m);
33 inline eOpCube(const BaseCube<typename T1::elem_type, T1>& in_m, const elem_type in_aux);
34 inline eOpCube(const BaseCube<typename T1::elem_type, T1>& in_m, const uword in_aux_uword_a, const uword in_aux_uword_b);
35 inline 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);
36 inline eOpCube(const BaseCube<typename T1::elem_type, T1>& in_m, const elem_type in_aux, const uword in_aux_uword_a, const uword in_aux_uword_b, const uword in_aux_uword_c);
37
38 arma_inline uword get_n_rows() const;
39 arma_inline uword get_n_cols() const;
40 arma_inline uword get_n_elem_slice() const;
41 arma_inline uword get_n_slices() const;
42 arma_inline uword get_n_elem() const;
43
44 arma_inline elem_type operator[] (const uword i) const;
45 arma_inline elem_type at (const uword row, const uword col, const uword slice) const;
46 arma_inline elem_type at_alt (const uword i) const;
47 };
48
49
50
51 //! @}