00001
00002
00003
00005
00006 #if !defined(AFX_SPARSEMATRIX_H__65CE724D_CA90_446E_9082_10C6730DF238__INCLUDED_)
00007 #define AFX_SPARSEMATRIX_H__65CE724D_CA90_446E_9082_10C6730DF238__INCLUDED_
00008
00009 #if _MSC_VER > 1000
00010 #pragma once
00011 #endif // _MSC_VER > 1000
00012
00013 class SparseMatrix
00014 {
00015 public:
00016 SparseMatrix(int nRows, int nCols);
00017 virtual void OrderElements() = 0;
00018
00019 virtual bool AddElement(int row, int col, int value) = 0;
00020
00021
00022 virtual bool RightVectorMultiply(double *colVector, int length) = 0;
00023 virtual ~SparseMatrix();
00024 protected:
00025 int nRows,nCols;
00026 };
00027
00028 #endif // !defined(AFX_SPARSEMATRIX_H__65CE724D_CA90_446E_9082_10C6730DF238__INCLUDED_)