www.pudn.com > reply_1_123563.zip > Matrix.h


class CMatrix{ 
private: 
	double **m_adValue; 
	int m_nRow; 
	int m_nCol; 
public: 
	CMatrix(); 
	CMatrix(int nRow,int nCol); 
	CMatrix(int nRow,int nCol,double dBuf); 
	CMatrix(const CMatrix &mat); 
	~CMatrix(); 
	bool MatInv(); 
	CMatrix operator*(const CMatrix&m); 
	CMatrix& operator*=(const CMatrix&m); 
	CMatrix& operator*=(double dBuf); 
	CMatrix operator*(double dBuf); 
	CMatrix operator+(const CMatrix&m); 
	CMatrix& operator+=(const CMatrix&m); 
	CMatrix& operator =(double dBuf); 
	CMatrix& operator=(const CMatrix&m); 
	CMatrix& Trans(const CMatrix&m); 
	void Realloc (int nRow,int nCol); 
	double & operator()(int iRow,int iCol) 
	{ 
		return  m_adValue[iRow][iCol]; 
	} 
 
	int GetCol() {return m_nCol;} 
	int GetRow() {return m_nRow;} 
};