Public Methods
- TMatrix (unsigned int _rdim=1, unsigned int _cdim=1, 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
- virtual TMatrix * submatrix (unsigned int i0,unsigned int j0, unsigned i1, unsigned int j1) const
- TMatrix * column (unsigned int j) const
- TMatrix * row (unsigned int i) 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)
- 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)
Public Static Methods
- 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)
Protected Methods
Protected Members
Detailed Description
[protected:
]
[protected:
]
[protected:
]
[protected:
]
[protected:
]
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
[protected:
]
TMatrix (unsigned int _rdim=1, unsigned int _cdim=1, Map ***_maps=0L)
|
[virtual]
Deletes each element of the matrix (but doesn't change the dimensions)
const unsigned int nRows (void)
|
[const]
const unsigned int nCols (void)
|
[const]
[const virtual]
Reimplemented from T.
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
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]
[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 virtual]
TMatrix * submatrix (unsigned int i0,unsigned int j0, unsigned i1, unsigned int j1)
|
[const virtual]
Returns a copy of the submatrix given by the elements from i0,j0 to i1,j1
(both included)
[const]
Returns a copy of the j-th column
[const]
Returns a copy of the i-th row
bool isAutoExpandable (void)
|
[const]
void setAutoExpand (bool b)
|
inline int operator== ( TMatrix v1 )
|
[const virtual]
Reimplemented from T.
inline int operator== ( double v1 )
|
[const virtual]
Reimplemented from T.
inline int operator!= ( TMatrix v1 )
|
[const virtual]
Reimplemented from T.
inline int operator!= ( double v1 )
|
[const virtual]
Reimplemented from T.
inline int operator< ( TMatrix v1 )
|
[const virtual]
Reimplemented from T.
inline int operator< ( double v1 )
|
[const virtual]
Reimplemented from T.
inline int operator> ( TMatrix v1 )
|
[const virtual]
Reimplemented from T.
inline int operator> ( double v1 )
|
[const virtual]
Reimplemented from T.
inline int operator>= ( TMatrix v1 )
|
[const virtual]
Reimplemented from T.
inline int operator>= ( double v1 )
|
[const virtual]
Reimplemented from T.
inline int operator<= ( TMatrix v1 )
|
[const virtual]
Reimplemented from T.
inline int operator<= ( double v1 )
|
[const virtual]
Reimplemented from T.
Reimplemented from T.
Reimplemented from T.
[virtual]
Reimplemented from T.
[virtual]
Reimplemented from T.
[virtual]
Reimplemented from T.
[virtual]
Reimplemented from T.
[static]
[static]
[static]
[static]
[static]
TMatrix * mul (T *&c1, TMatrix *&m2, bool managem1=false, bool managem2=false)
|
[static]
[static]
TMatrix * pow (TMatrix *&m1, T *&c2, bool managem1=false, bool managem2=false)
|
[static]
[const]
[const virtual]
Reimplemented from T.
[const virtual]
[const virtual]
Reimplemented from T.
bool isA (const char *str)
|
[const virtual]
Reimplemented from T.
[virtual]
Generated by: antonio@tazend on Fri May 25 22:16:00 2001, using kdoc 2.0a38. |