⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 matrix.h

📁 三维框架梁单元C++版本的源程序 可以使结构力学的概念更上升一个层次
💻 H
字号:
#pragma once

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;}
};


⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -