00001 //**************************************************** 00002 // April, 1993, University of Illinois 00003 // Copyright (C) 1993, 1994 Tianlin Wang 00004 /* Copyright (C) 1994-2003 Matvec Development Team. 00005 00006 This program is free software; you can redistribute it and/or 00007 modify it under the terms of the GNU Library General Public 00008 License as published by the Free Software Foundation; either 00009 version 2 of the License, or (at your option) any later version. 00010 00011 This program is distributed in the hope that it will be useful, 00012 but WITHOUT ANY WARRANTY; without even the implied warranty of 00013 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00014 Library General Public License for more details. 00015 00016 You should have received a copy of the GNU Library General Public 00017 License along with this library; if not, write to the Free 00018 Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, 00019 MA 02111-1307, USA 00020 */ 00021 00022 #ifndef MATVEC_MATRIXWBG_H 00023 #define MATVEC_MATRIXWBG_H 00024 00025 #include <string> 00026 #include <fstream> 00027 #include "session.h" 00028 #include "vector.h" 00029 #include "bg.h" 00030 #include "matrix.h" 00031 00032 namespace matvec { 00033 /*! 00034 \class Matrix vector.h 00035 \brief A vector is a on-dimensional array with double precision 00036 00037 \sa Matrix 00038 */ 00039 00040 template<class T> class Matrixwbg : public Matrix <T> { 00041 00042 public: 00043 typedef size_t size_type; 00044 Matrixwbg(void) { initialize(0,0,0); } //Constructor 1 00045 Matrixwbg(const size_type m,const size_type n) { initialize(m,n,0); } //Constructor 2 00046 Matrixwbg(const size_type m,const size_type n,const T** a) { initialize(m,n,a); } //Constructor 3 00047 Matrixwbg(const Matrixwbg<T>& a) { initialize(a.nrow,a.ncol,(const T**)a.me); } //Constructor 4 00048 Matrixwbg(const Matrix<T>& a) { initialize(a.nrow,a.ncol,(const T**)a.me); } //Constructor 5 00049 }; 00050 00051 00052 } ////// end of namespace matvec 00053 00054 00055 #endif
1.2.16