itpp_wrap.hpp
Go to the documentation of this file.
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 
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 
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 
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 
70 
71  typedef Mat<int> imat;
72  typedef Vec<int> ivec;
73 
74  typedef Mat<double> mat;
75  typedef Vec<double> vec;
76 
79  }
80 
81 #endif
82 
83 
eT * _data()
Definition: itpp_wrap.hpp:65
const Mat & operator=(const Mat &m)
Definition: itpp_wrap.hpp:39
Mat< short int > smat
Definition: itpp_wrap.hpp:68
Mat< double > mat
Definition: itpp_wrap.hpp:74
Vec< short int > svec
Definition: itpp_wrap.hpp:69
const eT * _data() const
Definition: itpp_wrap.hpp:44
dummy itpp::Mat class, to prevent compilation errors
Definition: itpp_wrap.hpp:30
Vec< std::complex< double > > cvec
Definition: itpp_wrap.hpp:78
Vec(int length)
Definition: itpp_wrap.hpp:57
const Vec & operator=(const Vec &m)
Definition: itpp_wrap.hpp:60
eT * _data()
Definition: itpp_wrap.hpp:45
Mat(int n_rows, int n_cols)
Definition: itpp_wrap.hpp:36
int rows() const
Definition: itpp_wrap.hpp:41
Vec(const Vec &m)
Definition: itpp_wrap.hpp:58
int cols() const
Definition: itpp_wrap.hpp:42
int length() const
Definition: itpp_wrap.hpp:63
Vec< double > vec
Definition: itpp_wrap.hpp:75
dummy itpp::Vec class, to prevent compilation errors
Definition: itpp_wrap.hpp:51
Vec< int > ivec
Definition: itpp_wrap.hpp:72
Mat< int > imat
Definition: itpp_wrap.hpp:71
Mat< std::complex< double > > cmat
Definition: itpp_wrap.hpp:77
int size() const
Definition: itpp_wrap.hpp:62
int size() const
Definition: itpp_wrap.hpp:43
const eT * _data() const
Definition: itpp_wrap.hpp:64
Mat(const Mat &m)
Definition: itpp_wrap.hpp:37


armadillo_matrix
Author(s):
autogenerated on Fri Apr 16 2021 02:31:57