哪位高人帮忙解决一道问题~~~
来源:百度知道 编辑:UC知道 时间:2024/06/06 07:33:28
//Matrix.h
#pragma once
// Matrix 命令目标
class Matrix
{
private:
double *p;
long Row;
long Col;
public:
Matrix();
virtual ~Matrix();
long GetRows(void);
long GetCols(void);
Matrix(long n);
Matrix(long row ,long col);
Matrix(double *arrAddress ,long col);
Matrix(double *arrAddress ,long arrWidth ,long arrHeight);
Matrix(const Matrix &m);//拷贝构造函数
bool IsVector(void);
Matrix SubMatrix(long offset);
double Arg(void);
double * operator[](long heightPos);
bool IsPtv(void);
Matrix T(void);
// Matrix operator *(Matrix & m1);
// Matrix operator *(double alpha ,Matrix &m1);
Matrix operator * (double alpha);
Matrix operator * ( Matrix &m1);
Matrix operator / (Matrix &m1);
Matrix operator =(Matrix &m);
Matrix Inver();