next up previous contents
Next: Matrice carrées pleines Up: Algèbres et Types Previous: Une classe de Complexes

Vecteurs de longueur fixe

template <class T, int N> class VectN{
      public:   T val[N];     
VectN(const VectN& r) ; 
VectN() ;
VectN(T r) ;
T&     operator[] ( int i) { assert((i< N)&&(i>=0)); return val[i];}
const T& operator[] ( int i) const 
         { assert((i< N)&&(i>=0)); return val[i];}
VectN  operator*      (const T& a);  
VectN  operator/      (const T& a);  
VectN& operator+=     (const VectN& a);
VectN  operator+      (const VectN& a);  
VectN& operator-=     (const VectN& a);
VectN  operator-      (const VectN& a);  
VectN& operator=      (const VectN& a);  
VectN& gauss          (const MatN<T,N>& a);  
VectN  operator/      (const MatN<T,N>& a);  
};



Pironneau Olivier
Jeudi 26 juin 1997 07:15:20