- #ifndef MATRICE_HPP
- #define MATRICE_HPP
-
- typedef double * Matrix;
-
- class Matrice
- {
- public:
- Matrice(int, int);
- Matrice(Matrice &);
- ~Matrice();
-
- void GetMatrice();
- void Fill();
- int GetRows() { return P; }
- int GetLines() { return N; }
- int GetDimension() { return N*P; }
-
- friend Matrice operator + (Matrice, Matrice);
- friend Matrice operator - (Matrice, Matrice);
- friend Matrice operator * (Matrice, Matrice);
- friend Matrice operator * (double , Matrice);
- friend Matrice operator ^ (Matrice, int );
- friend bool operator == (Matrice, Matrice);
-
- void Display() ;
- void Transpose();
- void Inverse() ;
- void Zero() ;
- void Identity() ;
-
- private:
- int N, P;
- Matrix XxMatrice;
- };
-
- #endif
#ifndef MATRICE_HPP
#define MATRICE_HPP
typedef double * Matrix;
class Matrice
{
public:
Matrice(int, int);
Matrice(Matrice &);
~Matrice();
void GetMatrice();
void Fill();
int GetRows() { return P; }
int GetLines() { return N; }
int GetDimension() { return N*P; }
friend Matrice operator + (Matrice, Matrice);
friend Matrice operator - (Matrice, Matrice);
friend Matrice operator * (Matrice, Matrice);
friend Matrice operator * (double , Matrice);
friend Matrice operator ^ (Matrice, int );
friend bool operator == (Matrice, Matrice);
void Display() ;
void Transpose();
void Inverse() ;
void Zero() ;
void Identity() ;
private:
int N, P;
Matrix XxMatrice;
};
#endif