Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

SparseMatrix.h

Go to the documentation of this file.
00001 // SparseMatrix.h: interface for the SparseMatrix class.
00002 //      A base class for dealing with sparse matrices; various derived
00003 // classes would implement different storage methods
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         // returns false if an element cannot be added
00019         virtual bool AddElement(int row, int col, int value) = 0;
00020         // result of this multiplication is returned in colVector itself
00021         // function returns false if nCols(matrix) != length
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_)

Generated on Mon Nov 3 09:38:16 2003 by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002