![]() |
RTXI 1.3
|
00001 #ifndef _MATRIX_T_H_ 00002 #define _MATRIX_T_H_ 00003 00004 #include "vector_T.h" 00005 template<class T> class rowvec; 00006 template<class T> class colvec; 00007 template<class T> class vector; 00008 template<class T> 00009 class matrix 00010 { 00011 protected: 00012 struct mrep 00013 { 00014 rowvec<T> **f; 00015 int refcnt; 00016 int orig_indx; 00017 int length; 00018 int max_indx; 00019 } *_p; 00020 int Is_Temp; 00021 public: 00022 matrix<T>( int row_orig, int nrows, 00023 int col_orig, int ncols); 00024 ~matrix<T>( void ); 00025 rowvec<T>& operator[](int i); 00026 colvec<T>& operator*( colvec<T> &v2); 00027 matrix<T>& operator-=( matrix<T> &m2); 00028 friend class vector<T>; 00029 friend class rowvec<T>; 00030 friend class colvec<T>; 00032 //void operator=(const double_complex& right); 00033 }; 00034 //vector<double>& operator*(matrix<double> &m1, vector<double> &v2); 00035 //matrix<double>& operator*(vector<double> &m1, vector<double> &v2); 00036 00037 #endif