00001 #ifndef STSVTCLUSTERMATRIX_HH
00002 #define STSVTCLUSTERMATRIX_HH
00003
00004 #include "Stiostream.h"
00005 #include <stdlib.h>
00006 #include <math.h>
00007 #include <new>
00008
00009 class StSvtClusterMatrix {
00010
00011 public:
00012
00013 StSvtClusterMatrix();
00014 StSvtClusterMatrix(int mRow, int mCol);
00015 StSvtClusterMatrix(const StSvtClusterMatrix &);
00016 int SetDimension(int mRow, int mCol=0);
00017 void GetDimension(int& mRow, int& mCol) const;
00018 int Rows() const;
00019 int Columns() const;
00020 ~StSvtClusterMatrix();
00021
00022 int mCluRow;
00023 int mCluCol;
00024
00025 friend istream& operator>> (istream& s, StSvtClusterMatrix& Svtcluster);
00026 double& operator () ( int row, int col);
00027
00028 private:
00029 double **mData;
00030 int MatrixAlloc(int mRow, int mCol);
00031 int MatrixDeAlloc();
00032 };
00033
00034 #endif