有关求矩阵的行列式和矩阵求逆的问题
我现在需要用c++编一个程序,用来求n阶矩阵的逆,我不知道程序要如何写才合适,总是会碰到一些问题,求矩阵的行列式我就写不出来了,哪位高人可以帮帮忙,谢了
附:我写的matrix类
class Matrix
{
friend istream &operator>>(istream &,Matrix &);
friend ostream &operator<<(ostream &,Matrix &);
private:
int line; //矩阵行数
int row; //矩阵列数
float **mat;
public:
Matrix(int=0,int=0); //默认构造函数
Matrix(int,int,float **);
Matrix(Matrix &); //拷贝构造函数
void getMatrix(); //读取矩阵
Matrix operator+(Matrix &); //矩阵加运算
Matrix operator*(Matrix &); //矩阵乘
Matrix operator=(Matrix &);
};