RTXI  2.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
matrix_t.h
Go to the documentation of this file.
1 #ifndef _MATRIX_T_H_
2 #define _MATRIX_T_H_
3 
4 #include "vector_t.h"
5 template <class T>
6 class rowvec;
7 template <class T>
8 class colvec;
9 template <class T>
10 class vector;
11 template <class T>
12 class matrix
13 {
14 protected:
15  struct mrep
16  {
18  int refcnt;
19  int orig_indx;
20  int length;
21  int max_indx;
22  } * _p;
23  int Is_Temp;
24 
25 public:
26  matrix<T>(int row_orig, int nrows, int col_orig, int ncols);
27  ~matrix<T>(void);
28  rowvec<T>& operator[](int i);
31  friend class vector<T>;
32  friend class rowvec<T>;
33  friend class colvec<T>;
35  // void operator=(const double_complex& right);
36 };
37 // vector<double>& operator*(matrix<double> &m1, vector<double> &v2);
38 // matrix<double>& operator*(vector<double> &m1, vector<double> &v2);
39 
40 #endif
Definition: matrix_t.h:6
int refcnt
Definition: matrix_t.h:18
int max_indx
Definition: matrix_t.h:21
colvec< T > & operator*(colvec< T > &v2)
Definition: matrix_t.cpp:73
int Is_Temp
Definition: matrix_t.h:23
struct matrix::mrep * _p
Definition: matrix_t.h:8
rowvec< T > ** f
Definition: matrix_t.h:17
int orig_indx
Definition: matrix_t.h:19
matrix< T > & operator-=(matrix< T > &m2)
Definition: matrix_t.cpp:125
int length
Definition: matrix_t.h:20
rowvec< T > & operator[](int i)
Definition: matrix_t.cpp:63