00001 // Copyright (C) 2008-2010 NICTA (www.nicta.com.au) 00002 // Copyright (C) 2008-2010 Conrad Sanderson 00003 // 00004 // This file is part of the Armadillo C++ library. 00005 // It is provided without any warranty of fitness 00006 // for any purpose. You can redistribute this file 00007 // and/or modify it under the terms of the GNU 00008 // Lesser General Public License (LGPL) as published 00009 // by the Free Software Foundation, either version 3 00010 // of the License or (at your option) any later version. 00011 // (see http://www.opensource.org/licenses for more info) 00012 00013 00016 00017 00018 #ifdef ARMA_USE_ITPP 00019 00020 #include <itpp/base/mat.h> 00021 #include <itpp/base/vec.h> 00022 00023 #else 00024 00025 namespace itpp 00026 { 00027 00029 template<typename eT> 00030 class Mat 00031 { 00032 public: 00033 00034 ~Mat() {} 00035 Mat() {} 00036 Mat(int n_rows, int n_cols) {} 00037 Mat(const Mat& m) {} 00038 00039 const Mat& operator=(const Mat& m) { return *this; } 00040 00041 int rows() const { return 0; } 00042 int cols() const { return 0; } 00043 int size() const { return 0; } 00044 const eT* _data() const { return 0; } 00045 eT* _data() { return 0; } 00046 }; 00047 00048 00050 template<typename eT> 00051 class Vec 00052 { 00053 public: 00054 00055 ~Vec() {} 00056 Vec() {} 00057 Vec(int length) {} 00058 Vec(const Vec& m) {} 00059 00060 const Vec& operator=(const Vec& m) { return *this; } 00061 00062 int size() const { return 0; } 00063 int length() const { return 0; } 00064 const eT* _data() const { return 0; } 00065 eT* _data() { return 0; } 00066 }; 00067 00068 typedef Mat<short int> smat; 00069 typedef Vec<short int> svec; 00070 00071 typedef Mat<int> imat; 00072 typedef Vec<int> ivec; 00073 00074 typedef Mat<double> mat; 00075 typedef Vec<double> vec; 00076 00077 typedef Mat< std::complex<double> > cmat; 00078 typedef Vec< std::complex<double> > cvec; 00079 } 00080 00081 #endif 00082 00083