TBCI::TSMatrix< T > Class Template Reference

#include <matrix.h>

Inheritance diagram for TBCI::TSMatrix< T >:

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

Collaboration graph
[legend]

List of all members.

Public Types

typedef T * Tptr
typedef T value_type
typedef T element_type
typedef T aligned_value_type

Public Member Functions

void detach (TMatrix< T > *=0)
T * getvec () const
T * getendvec () const
T & getfac ()
const T & getfac () const
 TSMatrix ()
 ~TSMatrix ()
 TSMatrix (const TMatrix< T > &tm, const T &f=(T) 1)
 TSMatrix (const Matrix< T > &m, const T &f=(T) 1)
 TSMatrix (const TSMatrix< T > &ts)
operator() (const unsigned int r, const unsigned int c)
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< T > operator+ (const Matrix< T > &)
TMatrix< T > operator+ (const TMatrix< T > &)
TMatrix< T > operator+ (TSMatrix< T >)
TMatrix< T > operator+ (const T &)
TMatrix< T > operator- (const Matrix< T > &)
TMatrix< T > operator- (const TMatrix< T > &)
TMatrix< T > operator- (TSMatrix< T >)
TMatrix< T > operator- (const T &)
TMatrix< T > operator* (const Matrix< T > &m)
TMatrix< T > operator* (TMatrix< T > tm)
TVector< T > operator* (const Vector< T > &v)
TVector< T > operator* (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

Static Public Member Functions

static const char * mat_info ()

Protected Member Functions

T fac __attribute__ ((aligned(16)))
void real_destroy ()
void clone (bool=false, TMatrix< T > *=0)

Protected Attributes

T * vec
unsigned long dim
unsigned int row
unsigned int col
T ** mat
T * endvec
bool mut

Friends

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


Detailed Description

template<typename T>
class TBCI::TSMatrix< T >

Temporary object for scaled Matrices

Definition at line 1112 of file matrix.h.


Member Typedef Documentation

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

Definition at line 1130 of file matrix.h.

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

Definition at line 1136 of file matrix.h.

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

Definition at line 1137 of file matrix.h.

template<typename T>
typedef T TBCI::TSMatrix< T >::aligned_value_type

Definition at line 1138 of file matrix.h.


Constructor & Destructor Documentation

template<typename T>
TBCI::TSMatrix< T >::TSMatrix (  )  [inline]

Definition at line 1147 of file matrix.h.

template<typename T>
TBCI::TSMatrix< T >::~TSMatrix (  )  [inline]

Definition at line 1149 of file matrix.h.

template<typename T>
TBCI::TSMatrix< T >::TSMatrix ( const TMatrix< T > &  tm,
const T &  f = (T)1 
) [inline]

Definition at line 1151 of file matrix.h.

template<typename T>
TBCI::TSMatrix< T >::TSMatrix ( const Matrix< T > &  m,
const T &  f = (T)1 
) [inline]

Definition at line 1154 of file matrix.h.

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

Definition at line 1157 of file matrix.h.


Member Function Documentation

template<typename T>
T fac TBCI::TSMatrix< T >::__attribute__ ( (aligned(16))   )  [protected]

template<typename T>
void TBCI::TSMatrix< T >::real_destroy (  )  [inline, protected]

template<typename T>
void TBCI::TSMatrix< T >::clone ( bool  evl = false,
TMatrix< T > *  tm = 0 
) [inline, protected]

template<typename T>
void TBCI::TSMatrix< T >::detach ( TMatrix< T > *  tm = 0  )  [inline]

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

Definition at line 1141 of file matrix.h.

References TBCI::TMatrix< T >::vec.

template<typename T>
T* TBCI::TSMatrix< T >::getendvec (  )  const [inline]

Definition at line 1142 of file matrix.h.

References TBCI::TMatrix< T >::endvec.

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

Definition at line 1143 of file matrix.h.

References fac().

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

Definition at line 1144 of file matrix.h.

References fac().

template<typename T>
static const char* TBCI::TSMatrix< T >::mat_info (  )  [inline, static]

Reimplemented from TBCI::Matrix_Sig< T >.

Definition at line 1162 of file matrix.h.

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

Definition at line 1164 of file matrix.h.

References fac(), TBCI::TMatrix< T >::mat, TBCI::TMatrix< T >::real_destroy(), and T.

template<typename T>
TSMatrix< T > & TBCI::TSMatrix< T >::eval ( TMatrix< T > *  tm = 0  )  [inline]

template<typename T>
TSMatrix<T>& TBCI::TSMatrix< T >::operator= ( const TSMatrix< T > &  ts  )  [inline]

template<typename T>
TSMatrix<T>& TBCI::TSMatrix< T >::operator= ( const TMatrix< T > &  tm  )  [inline]

template<typename T>
TSMatrix<T>& TBCI::TSMatrix< T >::operator*= ( const T &  f  )  [inline]

Definition at line 1179 of file matrix.h.

References fac().

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

Definition at line 1180 of file matrix.h.

References fac().

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

Definition at line 1181 of file matrix.h.

References fac().

template<typename T>
TSMatrix<T>& TBCI::TSMatrix< T >::operator/ ( const T &  f  )  [inline]

Definition at line 1182 of file matrix.h.

References fac().

template<typename T>
TSMatrix<T>& TBCI::TSMatrix< T >::operator- (  )  [inline]

Definition at line 1186 of file matrix.h.

References fac(), and T.

template<typename T>
TMatrix< T > TBCI::TSMatrix< T >::operator+ ( const Matrix< T > &  m  )  [inline]

template<typename T>
TMatrix< T > TBCI::TSMatrix< T >::operator+ ( const TMatrix< T > &  tm  )  [inline]

template<typename T>
TMatrix< T > TBCI::TSMatrix< T >::operator+ ( TSMatrix< T >  ts  )  [inline]

template<typename T>
TMatrix< T > TBCI::TSMatrix< T >::operator+ ( const T &  a  )  [inline]

template<typename T>
TMatrix< T > TBCI::TSMatrix< T >::operator- ( const Matrix< T > &  m  )  [inline]

template<typename T>
TMatrix< T > TBCI::TSMatrix< T >::operator- ( const TMatrix< T > &  tm  )  [inline]

template<typename T>
TMatrix< T > TBCI::TSMatrix< T >::operator- ( TSMatrix< T >  ts  )  [inline]

template<typename T>
TMatrix< T > TBCI::TSMatrix< T >::operator- ( const T &  a  )  [inline]

template<typename T>
TMatrix< T > TBCI::TSMatrix< T >::operator* ( const Matrix< T > &  m  )  [inline]

template<typename T>
TMatrix< T > TBCI::TSMatrix< T >::operator* ( TMatrix< T >  tm  )  [inline]

template<typename T>
TVector< T > TBCI::TSMatrix< T >::operator* ( const Vector< T > &  v  )  [inline]

template<typename T>
TVector< T > TBCI::TSMatrix< T >::operator* ( TVector< T >  tv  )  [inline]

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

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

Definition at line 1210 of file matrix.h.

template<typename T>
bool TBCI::TSMatrix< T >::operator== ( TSMatrix< T > &  ts  )  [inline]

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

Definition at line 1213 of file matrix.h.

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

Definition at line 1215 of file matrix.h.

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

Definition at line 1216 of file matrix.h.

template<typename T>
double TBCI::TSMatrix< T >::fabssqr (  )  [inline]

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

Definition at line 1219 of file matrix.h.

References TBCI::TMatrix< T >::fabssqr(), GLBL__, MATH__, and sqrt().

template<typename T>
unsigned long TBCI::TSMatrix< T >::size (  )  const [inline]

Definition at line 1221 of file matrix.h.

References TBCI::TMatrix< T >::dim.

Referenced by TBCI::TSMatrix< T >::operator+(), and TBCI::TSMatrix< T >::operator-().


Friends And Related Function Documentation

template<typename T>
friend class TMatrix< T > [friend]

Definition at line 1133 of file matrix.h.

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

Definition at line 1134 of file matrix.h.

template<typename T>
TSMatrix<T> operator* ( const T &  f,
TSMatrix< T >  ts 
) [friend]

Definition at line 1515 of file matrix.h.

template<typename T>
TMatrix<T> operator+ ( const T &  a,
const TSMatrix< T > &  ts 
) [friend]

Definition at line 1377 of file matrix.h.

template<typename T>
TMatrix<T> operator- ( const T &  a,
const TSMatrix< T > &  ts 
) [friend]

Definition at line 1385 of file matrix.h.


Member Data Documentation

template<typename T>
T* TBCI::TSMatrix< T >::vec [protected]

template<typename T>
unsigned long TBCI::TSMatrix< T >::dim [protected]

template<typename T>
unsigned int TBCI::TSMatrix< T >::row [protected]

template<typename T>
unsigned int TBCI::TSMatrix< T >::col [protected]

template<typename T>
T** TBCI::TSMatrix< T >::mat [protected]

template<typename T>
T* TBCI::TSMatrix< T >::endvec [protected]

template<typename T>
bool TBCI::TSMatrix< T >::mut [protected]


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

Generated on Wed Nov 20 09:29:38 2013 for TBCI Numerical high perf. C++ Library by  doxygen 1.5.6