cmatrix.h
来自「有限元计算,可以计算一型梁单元的软件. 我们可以共同提高」· C头文件 代码 · 共 35 行
H
35 行
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(); CMatrix operator* (const CMatrix &m); CMatrix operator* (double dBuf); CMatrix operator+ (const CMatrix &m); CMatrix & operator= (double dBuf); CMatrix & operator= (const CMatrix &m); CMatrix & Trans(const CMatrix &m); void Realloc(int row,int col); double&operator() (int iRow,int iCol) { return m_adValue[iRow][iCol]; } int GetCol() { return m_nCol; } int GetRow() { return m_nRow; }};
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?