cmat.h
来自「关于求矩阵秩的程序」· C头文件 代码 · 共 33 行
H
33 行
#ifndef CMAT_H
#define CMAT_H
class CMat
{
private:
float **Mat;
int RowDim;
int ColDim;
float **GaussElimd;// Gauss eliminated matrix of Mat
public:
/*******************************************/
//constructor and destructor
/*******************************************/
CMat(int rows,int cols);
~CMat();
/*******************************************/
//matrix calculations
/*******************************************/
// float Det();//return determinant of Mat
int Order();//return order of Mat
public:
void SwapRows(float **Matrix,int Row1,int Row2);
bool IsZeroVec(float *Vec,int VecDim);
float **GetMat() {return Mat;}//access to Mat
float **GetGaussElimd() {return GaussElimd;}//access to GaussElimd
void show(float **mat);
};
#endif
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?