Mercurial > hg > segmenter-vamp-plugin
comparison armadillo-2.4.4/include/armadillo_bits/itpp_wrap.hpp @ 0:8b6102e2a9b0
Armadillo Library
author | maxzanoni76 <max.zanoni@eecs.qmul.ac.uk> |
---|---|
date | Wed, 11 Apr 2012 09:27:06 +0100 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:8b6102e2a9b0 |
---|---|
1 // Copyright (C) 2008-2010 NICTA (www.nicta.com.au) | |
2 // Copyright (C) 2008-2010 Conrad Sanderson | |
3 // | |
4 // This file is part of the Armadillo C++ library. | |
5 // It is provided without any warranty of fitness | |
6 // for any purpose. You can redistribute this file | |
7 // and/or modify it under the terms of the GNU | |
8 // Lesser General Public License (LGPL) as published | |
9 // by the Free Software Foundation, either version 3 | |
10 // of the License or (at your option) any later version. | |
11 // (see http://www.opensource.org/licenses for more info) | |
12 | |
13 | |
14 //! \addtogroup itpp_wrap | |
15 //! @{ | |
16 | |
17 | |
18 #ifdef ARMA_USE_ITPP | |
19 | |
20 #include <itpp/base/mat.h> | |
21 #include <itpp/base/vec.h> | |
22 | |
23 #else | |
24 | |
25 namespace itpp | |
26 { | |
27 | |
28 //! dummy itpp::Mat class, to prevent compilation errors | |
29 template<typename eT> | |
30 class Mat | |
31 { | |
32 public: | |
33 | |
34 ~Mat() {} | |
35 Mat() {} | |
36 Mat(int n_rows, int n_cols) {} | |
37 Mat(const Mat& m) {} | |
38 | |
39 const Mat& operator=(const Mat& m) { return *this; } | |
40 | |
41 int rows() const { return 0; } | |
42 int cols() const { return 0; } | |
43 int size() const { return 0; } | |
44 const eT* _data() const { return 0; } | |
45 eT* _data() { return 0; } | |
46 }; | |
47 | |
48 | |
49 //! dummy itpp::Vec class, to prevent compilation errors | |
50 template<typename eT> | |
51 class Vec | |
52 { | |
53 public: | |
54 | |
55 ~Vec() {} | |
56 Vec() {} | |
57 Vec(int length) {} | |
58 Vec(const Vec& m) {} | |
59 | |
60 const Vec& operator=(const Vec& m) { return *this; } | |
61 | |
62 int size() const { return 0; } | |
63 int length() const { return 0; } | |
64 const eT* _data() const { return 0; } | |
65 eT* _data() { return 0; } | |
66 }; | |
67 | |
68 typedef Mat<short int> smat; | |
69 typedef Vec<short int> svec; | |
70 | |
71 typedef Mat<int> imat; | |
72 typedef Vec<int> ivec; | |
73 | |
74 typedef Mat<double> mat; | |
75 typedef Vec<double> vec; | |
76 | |
77 typedef Mat< std::complex<double> > cmat; | |
78 typedef Vec< std::complex<double> > cvec; | |
79 } | |
80 | |
81 #endif | |
82 | |
83 | |
84 //! @} |