Public Members
- TMatrix (int _rdim, int _cdim, Map ***_maps=0L)
- TMatrix ( const TMatrix &x)
- virtual ~TMatrix ()
- void clear (void)
- const int nRows (void) const
- const int nCols (void) const
- virtual TMatrix * copy (void)
- virtual void set (int i, int j, Map *m)
- virtual void setCol (int j, TMatrix *v,int vj, bool managev=false)
- virtual void setRow (int i, TMatrix *v,int vi, bool managev=false)
- virtual Map * at (int i, int j) const
- virtual Map * at (int i) const
- virtual T * t (int i) const
- virtual T * t (int i,int j) const
- virtual T & tRef (int i) const
- virtual T & tRef (int i,int j) const
- bool isAutoExpandable (void) const
- void setAutoExpand (bool b)
- virtual inline int operator== ( TMatrix v1 ) const
- virtual inline int operator== ( double v1 ) const
- virtual inline int operator!= ( TMatrix v1 ) const
- virtual inline int operator!= ( double v1 ) const
- virtual inline int operator< ( TMatrix v1 ) const
- virtual inline int operator< ( double v1 ) const
- virtual inline int operator> ( TMatrix v1 ) const
- virtual inline int operator> ( double v1 ) const
- virtual inline int operator>= ( TMatrix v1 ) const
- virtual inline int operator>= ( double v1 ) const
- virtual inline int operator<= ( TMatrix v1 ) const
- virtual inline int operator<= ( double v1 ) const
- TMatrix & operator= ( const TMatrix &x )
- TMatrix & operator= ( double &x )
- virtual TMatrix & operator+= ( const TMatrix &x )
- virtual TMatrix & operator-= ( const TMatrix &x )
- virtual TMatrix & operator*= ( const TMatrix &x )
- virtual TMatrix & operator/= ( const TMatrix &x )
- void traspose (void)
- static T * distMax (TMatrix *v,TMatrix *w)
- static T & distMaxCol (TMatrix *v,int c1,TMatrix *w,int c2)
- static TMatrix * add (TMatrix *&m1, TMatrix *&m2, bool managem1=false, bool managem2=false)
- static TMatrix * sub (TMatrix *&m1, TMatrix *&m2, bool managem1=false, bool managem2=false)
- static TMatrix * mul (TMatrix *&m1, TMatrix *&m2, bool managem1=false, bool managem2=false)
- static TMatrix * mul (T *&c1, TMatrix *&m2, bool managem1=false, bool managem2=false)
- static TMatrix * div (TMatrix *&m1, TMatrix *&m2, bool managem1=false, bool managem2=false)
- static TMatrix * pow (TMatrix *&m1, T *&c2, bool managem1=false, bool managem2=false)
- operator const double () const
- virtual QString string (void) const
- virtual QString htmlString (void) const
- virtual const char * isA () const
- virtual int isA (const char *str) const
- virtual void load (const QString &file)
Protected Members
- Map *** matrix
- int nrows
- int ncols
- int maxrows
- int maxcols
- void expandRows (int i)
- void expandCols (int j)
- bool m_autoExpand
[protected]
expandRows make sure that the row with number i exists and if it doesn't,
it expands the current matrix to be big enough
[protected]
expandCols make sure that the column with number j exists and if it doesn't,
it expands the current matrix to be big enough
Deletes each element of the matrix (but doesn't change the dimensions)
void set (int i, int j, Map *m)
|
[virtual]
Sets the element (i,j) to point to m.
Note that this method doesn't make a copy of m, but points directly to m.
This is better in case you don't need that map anymore, so that your
TMatrix object manages it from now on.
If you want to keep your map object (for example, because it's already
managed by another TMatrix object) you can use m->copy() instead of m
void setCol (int j, TMatrix *v,int vj, bool managev=false)
|
[virtual]
Sets the column j to point to the elements in the column vj of v.
This method just "reparents" the elements of v to this object.
If you don't want to do that (but using a copy of v
Generated by: antlarr@terminus on Wed May 31 08:19:51 2000, using kdoc 2.0a22. |