-
-
- class Matrice
- {
- friend ostream &operator<< ( ostream &, Matrice &);
- friend istream &operator>> ( istream &, Matrice &);
-
- public:
- Matrice(int = 1, int = 1, double* = NULL);
- ~Matrice();
- void Affiche();
- void AlloueMem();
- void Dim();
- int GetColdim();
- double GetCoord(int, int);
- int GetRowdim();
- void Saisie();
- void SetColdim(int);
- void SetCoord(int, int, double);
- void SetRowdim(int);
- Matrice &Transpose();
- const Matrice &operator=(Matrice &);
- bool operator==(Matrice &);
- double operator()(int, int);
- Matrice &operator[](int);
- Matrice &operator+(Matrice &);
- Matrice &operator-(Matrice &);
- Matrice &operator*(Matrice &);
- Matrice &operator*(double);
- friend Matrice &operator*(double, Matrice &);
- Polynome &CharPoly();
- double Det();
- Matrice &Inverse();
- bool QR(Matrice &, Matrice &);
- Matrice &EigenVals(int, double);
-
- private:
- double *mat;
- int row;
- int col;
-
- };
-
-
-
- Matrice &Id(int);
- double ProdScal(Matrice &, Matrice&);
- double Norme2(Matrice &);
- double Trace(Matrice &);
-
class Matrice
{
friend ostream &operator<< ( ostream &, Matrice &);
friend istream &operator>> ( istream &, Matrice &);
public:
Matrice(int = 1, int = 1, double* = NULL);
~Matrice();
void Affiche();
void AlloueMem();
void Dim();
int GetColdim();
double GetCoord(int, int);
int GetRowdim();
void Saisie();
void SetColdim(int);
void SetCoord(int, int, double);
void SetRowdim(int);
Matrice &Transpose();
const Matrice &operator=(Matrice &);
bool operator==(Matrice &);
double operator()(int, int);
Matrice &operator[](int);
Matrice &operator+(Matrice &);
Matrice &operator-(Matrice &);
Matrice &operator*(Matrice &);
Matrice &operator*(double);
friend Matrice &operator*(double, Matrice &);
Polynome &CharPoly();
double Det();
Matrice &Inverse();
bool QR(Matrice &, Matrice &);
Matrice &EigenVals(int, double);
private:
double *mat;
int row;
int col;
};
Matrice &Id(int);
double ProdScal(Matrice &, Matrice&);
double Norme2(Matrice &);
double Trace(Matrice &);