Public Members
- TMatrix (unsigned int _rdim, unsigned int _cdim, Map ***_maps=0L)
- TMatrix ( const TMatrix &x)
- virtual ~TMatrix ()
- void clear (void)
- const unsigned int nRows (void) const
- const unsigned int nCols (void) const
- virtual TMatrix * copy (void) const
- virtual void set (unsigned int i, unsigned int j, Map *m)
- virtual void setCol (unsigned int j, TMatrix *v, unsigned int vj, bool managev=false)
- virtual void setRow (unsigned int i, TMatrix *v, unsigned int vi, bool managev=false)
- virtual Map * at (unsigned int i, unsigned int j) const
- virtual Map * at (unsigned int i) const
- virtual T * t (unsigned int i) const
- virtual T * t (unsigned int i, unsigned int j) const
- virtual T & tRef (unsigned int i) const
- virtual T & tRef (unsigned int i, unsigned 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, unsigned int c1, TMatrix *w, unsigned 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 bool isA (const char *str) const
- virtual void load (const QString &file)
Protected Members
- Map *** matrix
- unsigned int nrows
- unsigned int ncols
- unsigned int maxrows
- unsigned int maxcols
- void expandRows (unsigned int i)
- void expandCols (unsigned int j)
- bool m_autoExpand
void expandRows (unsigned int i)
|
[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
void expandCols (unsigned int j)
|
[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 (unsigned int i, unsigned 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 (unsigned int j, TMatrix *v, unsigned 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 Mon Jun 5 03:54:02 2000, using kdoc 2.0a22. |