TBCI Numerical high perf. C++ Library  2.8.0
Public Types | Public Member Functions | Static Public Member Functions | Public Attributes | Protected Member Functions | Protected Attributes | Friends | List of all members
TSMatrix< T > Class Template Reference

#include <matrix.h>

Inheritance diagram for TSMatrix< T >:
Inheritance graph
[legend]
Collaboration diagram for TSMatrix< T >:
Collaboration graph
[legend]

Public Types

typedef TTptr
 
typedef T value_type
 
typedef T element_type
 
typedef T aligned_value_type TALIGN (MIN_ALIGN2)
 

Public Member Functions

void detach (TMatrix< T > *=0)
 
Tgetvec () const
 
Tgetendvec () const
 
Tgetfac ()
 
const Tgetfac () const
 
 TSMatrix ()
 
 ~TSMatrix ()
 
 dim (tm.dim)
 
 row (tm.row)
 
 col (tm.col)
 
 mat (tm.mat)
 
 endvec (tm.endvec)
 
 fac (f)
 
 mut (true)
 
 dim (m.dim)
 
 row (m.row)
 
 col (m.col)
 
 mat (m.mat)
 
 endvec (m.endvec)
 
 fac (f)
 
 mut (false)
 
 TSMatrix (const TSMatrix< T > &ts)
 
T operator() (const unsigned int r, const unsigned int c) HOT
 
TSMatrix< T > & eval (TMatrix< T > *=0)
 
TSMatrix< T > & operator= (const TSMatrix< T > &ts)
 
TSMatrix< T > & operator= (const TMatrix< T > &tm)
 
TSMatrix< T > & operator*= (const T &f)
 
TSMatrix< T > & operator/= (const T &f)
 
TSMatrix< T > & operator* (const T &f)
 
TSMatrix< T > & operator/ (const T &f)
 
TSMatrix< T > & operator- ()
 
TMatrix< Toperator+ (const Matrix< T > &)
 
TMatrix< Toperator+ (const TMatrix< T > &)
 
TMatrix< Toperator+ (TSMatrix< T >)
 
TMatrix< Toperator+ (const T &)
 
TMatrix< Toperator- (const Matrix< T > &)
 
TMatrix< Toperator- (const TMatrix< T > &)
 
TMatrix< Toperator- (TSMatrix< T >)
 
TMatrix< Toperator- (const T &)
 
TMatrix< Toperator* (const Matrix< T > &m)
 
TMatrix< Toperator* (TMatrix< T > tm)
 
TVector< Toperator* (const Vector< T > &v)
 
TVector< Toperator* (TVector< T > tv)
 
bool operator== (const Matrix< T > &)
 
bool operator!= (const Matrix< T > &m)
 
bool operator== (TSMatrix< T > &)
 
bool operator!= (TSMatrix< T > &ts)
 
bool operator== (TMatrix< T > &tm)
 
bool operator!= (TMatrix< T > &tm)
 
double fabssqr ()
 
double fabs ()
 
unsigned long size () const
 
- Public Member Functions inherited from Matrix_Sig< T >
 Matrix_Sig ()
 
 ~Matrix_Sig ()
 
tbci_traits< T >::const_refval_type operator() (const unsigned, const unsigned) const
 ro access More...
 
Toperator() (const unsigned, const unsigned)
 rw access More...
 
Matrix_Sig< T > & fill (const T &)
 
Matrix_Sig< T > & setunit (const T &=(T) 1)
 
Matrix_Sig< T > & clear ()
 
TVector< Toperator* (const Vector_Sig< T > &) const
 
TVector< TtransMult (const Vector_Sig< T > &) const
 
unsigned int rows () const
 
unsigned int columns () const
 

Static Public Member Functions

static const char * mat_info ()
 
- Static Public Member Functions inherited from Matrix_Sig< T >
static const char * mat_info ()
 

Public Attributes

 __pad0__: vec(tm.vec)
 
 __pad1__: vec(m.vec)
 

Protected Member Functions

T fac ALIGN (MIN_ALIGN2)
 
void real_destroy ()
 
void clone (bool=false, TMatrix< T > *=0)
 

Protected Attributes

Tvec
 
unsigned long dim
 
unsigned int row
 
unsigned int col
 
T ** mat
 
Tendvec
 
bool mut
 

Friends

class TMatrix< T >
 
class Matrix< T >
 
NOINST TSMatrix< T > FRIEND_TBCI__ operator*FGD (const T &, TSMatrix< T >)
 
NOINST TMatrix< T > FRIEND_TBCI__ operator+FGD (const T &, const TSMatrix< T > &)
 
NOINST TMatrix< T > FRIEND_TBCI__ operator-FGD (const T &, const TSMatrix< T > &)
 

Detailed Description

template<typename T>
class TSMatrix< T >

Temporary object for scaled Matrices

Definition at line 74 of file matrix.h.

Member Typedef Documentation

template<typename T>
typedef T TSMatrix< T >::element_type

Definition at line 1143 of file matrix.h.

template<typename T>
typedef T aligned_value_type TSMatrix< T >::TALIGN(MIN_ALIGN2)

Definition at line 1144 of file matrix.h.

template<typename T>
typedef T* TSMatrix< T >::Tptr

Definition at line 1136 of file matrix.h.

template<typename T>
typedef T TSMatrix< T >::value_type

Definition at line 1142 of file matrix.h.

Constructor & Destructor Documentation

template<typename T>
TSMatrix< T >::TSMatrix ( )
inline

Definition at line 1153 of file matrix.h.

template<typename T>
TSMatrix< T >::~TSMatrix ( )
inline

Definition at line 1155 of file matrix.h.

template<typename T>
TSMatrix< T >::TSMatrix ( const TSMatrix< T > &  ts)
inline

Definition at line 1163 of file matrix.h.

Member Function Documentation

template<typename T>
T fac TSMatrix< T >::ALIGN ( MIN_ALIGN2  )
protected
template<typename T >
void TSMatrix< T >::clone ( bool  evl = false,
TMatrix< T > *  tm = 0 
)
protected
template<typename T>
TSMatrix< T >::col ( tm.  col)
template<typename T>
TSMatrix< T >::col ( m.  col)
template<typename T >
void TSMatrix< T >::detach ( TMatrix< T > *  tm = 0)
inline
template<typename T>
TSMatrix< T >::dim ( tm.  dim)
template<typename T>
TSMatrix< T >::dim ( m.  dim)
template<typename T>
TSMatrix< T >::endvec ( tm.  endvec)
template<typename T>
TSMatrix< T >::endvec ( m.  endvec)
template<typename T >
TSMatrix< T > & TSMatrix< T >::eval ( TMatrix< T > *  tm = 0)
inline

Definition at line 1280 of file matrix.h.

References TMatrix< T >::dim, fac, STD_SMP_TEMPLATE2C, T, and TMatrix< T >::vec.

Referenced by TMatrix< T >::operator=(), and TMatrix< T >::TMatrix().

template<typename T>
double TSMatrix< T >::fabs ( )
inline

Definition at line 1225 of file matrix.h.

References TSMatrix< T >::fabssqr(), GLBL__, MATH__, and std::sqrt().

template<typename T >
double TSMatrix< T >::fabssqr ( )
template<typename T>
TSMatrix< T >::fac ( )
template<typename T>
TSMatrix< T >::fac ( )
template<typename T>
T* TSMatrix< T >::getendvec ( ) const
inline

Definition at line 1148 of file matrix.h.

References TSMatrix< T >::endvec.

template<typename T>
T& TSMatrix< T >::getfac ( )
inline

Definition at line 1149 of file matrix.h.

References TSMatrix< T >::fac().

template<typename T>
const T& TSMatrix< T >::getfac ( ) const
inline

Definition at line 1150 of file matrix.h.

References TSMatrix< T >::fac().

template<typename T>
T* TSMatrix< T >::getvec ( ) const
inline

Definition at line 1147 of file matrix.h.

References TSMatrix< T >::vec.

template<typename T>
TSMatrix< T >::mat ( tm.  mat)
template<typename T>
TSMatrix< T >::mat ( m.  mat)
template<typename T>
static const char* TSMatrix< T >::mat_info ( )
inlinestatic

Definition at line 1168 of file matrix.h.

template<typename T>
TSMatrix< T >::mut ( true  )
inline

Definition at line 1159 of file matrix.h.

template<typename T>
TSMatrix< T >::mut ( false  )
inline

Definition at line 1162 of file matrix.h.

template<typename T>
bool TSMatrix< T >::operator!= ( const Matrix< T > &  m)
inline

Definition at line 1216 of file matrix.h.

template<typename T>
bool TSMatrix< T >::operator!= ( TSMatrix< T > &  ts)
inline

Definition at line 1219 of file matrix.h.

References ts.

template<typename T>
bool TSMatrix< T >::operator!= ( TMatrix< T > &  tm)
inline

Definition at line 1222 of file matrix.h.

template<typename T>
T TSMatrix< T >::operator() ( const unsigned int  r,
const unsigned int  c 
)
inline

Definition at line 1170 of file matrix.h.

References c, TSMatrix< T >::fac(), TSMatrix< T >::mat, TSMatrix< T >::real_destroy(), and T.

template<typename T>
TSMatrix<T>& TSMatrix< T >::operator* ( const T f)
inline

Definition at line 1187 of file matrix.h.

References TSMatrix< T >::fac().

template<typename T >
TMatrix< T > TSMatrix< T >::operator* ( const Matrix< T > &  m)
template<typename T >
TMatrix< T > TSMatrix< T >::operator* ( TMatrix< T tm)
template<typename T >
TVector< T > TSMatrix< T >::operator* ( const Vector< T > &  v)
template<typename T >
TVector< T > TSMatrix< T >::operator* ( TVector< T tv)
template<typename T>
TSMatrix<T>& TSMatrix< T >::operator*= ( const T f)
inline

Definition at line 1185 of file matrix.h.

References TSMatrix< T >::fac().

template<typename T >
TMatrix< T > TSMatrix< T >::operator+ ( const Matrix< T > &  m)
inline
template<typename T >
TMatrix< T > TSMatrix< T >::operator+ ( const TMatrix< T > &  tm)
inline
template<typename T >
TMatrix< T > TSMatrix< T >::operator+ ( TSMatrix< T ts)
inline
template<typename T >
TMatrix< T > TSMatrix< T >::operator+ ( const T a)
inline
template<typename T>
TSMatrix<T>& TSMatrix< T >::operator- ( )
inline

Definition at line 1192 of file matrix.h.

References TSMatrix< T >::fac(), and T.

template<typename T >
TMatrix< T > TSMatrix< T >::operator- ( const Matrix< T > &  m)
inline
template<typename T >
TMatrix< T > TSMatrix< T >::operator- ( const TMatrix< T > &  tm)
inline
template<typename T >
TMatrix< T > TSMatrix< T >::operator- ( TSMatrix< T ts)
inline
template<typename T >
TMatrix< T > TSMatrix< T >::operator- ( const T a)
inline
template<typename T>
TSMatrix<T>& TSMatrix< T >::operator/ ( const T f)
inline

Definition at line 1188 of file matrix.h.

References TSMatrix< T >::fac().

template<typename T>
TSMatrix<T>& TSMatrix< T >::operator/= ( const T f)
inline

Definition at line 1186 of file matrix.h.

References TSMatrix< T >::fac().

template<typename T>
TSMatrix<T>& TSMatrix< T >::operator= ( const TSMatrix< T > &  ts)
inline
template<typename T>
TSMatrix<T>& TSMatrix< T >::operator= ( const TMatrix< T > &  tm)
inline
template<typename T >
bool TSMatrix< T >::operator== ( const Matrix< T > &  m)
template<typename T >
bool TSMatrix< T >::operator== ( TSMatrix< T > &  ts)
template<typename T>
bool TSMatrix< T >::operator== ( TMatrix< T > &  tm)
inline

Definition at line 1221 of file matrix.h.

template<typename T >
void TSMatrix< T >::real_destroy ( )
inlineprotected
template<typename T>
TSMatrix< T >::row ( tm.  row)
template<typename T>
TSMatrix< T >::row ( m.  row)
template<typename T>
unsigned long TSMatrix< T >::size ( ) const
inline

Definition at line 1227 of file matrix.h.

References TSMatrix< T >::dim.

Referenced by bvfillm(), Matrix< T >::operator+(), and Matrix< T >::operator-().

Friends And Related Function Documentation

template<typename T>
friend class Matrix< T >
friend

Definition at line 1140 of file matrix.h.

template<typename T>
NOINST TSMatrix<T> FRIEND_TBCI__ operator*FGD ( const T ,
TSMatrix< T  
)
friend
template<typename T>
NOINST TMatrix<T> FRIEND_TBCI__ operator+FGD ( const T ,
const TSMatrix< T > &   
)
friend
template<typename T>
NOINST TMatrix<T> FRIEND_TBCI__ operator-FGD ( const T ,
const TSMatrix< T > &   
)
friend
template<typename T>
friend class TMatrix< T >
friend

Definition at line 1139 of file matrix.h.

Member Data Documentation

template<typename T>
TSMatrix< T >::__pad0__

Definition at line 1158 of file matrix.h.

template<typename T>
TSMatrix< T >::__pad1__

Definition at line 1161 of file matrix.h.

template<typename T>
unsigned int TSMatrix< T >::col
protected
template<typename T>
unsigned long TSMatrix< T >::dim
protected
template<typename T>
T* TSMatrix< T >::endvec
protected
template<typename T>
T** TSMatrix< T >::mat
protected
template<typename T>
bool TSMatrix< T >::mut
protected
template<typename T>
unsigned int TSMatrix< T >::row
protected
template<typename T>
T* TSMatrix< T >::vec
protected

The documentation for this class was generated from the following file: