TBCI Numerical high perf. C++ Library 2.8.0
F_TSMatrix< T > Class Template Reference

Temporary object for scaled matrices. More...

#include <f_matrix.h>

Inheritance diagram for F_TSMatrix< T >:
Collaboration diagram for F_TSMatrix< T >:

Public Types

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

Public Member Functions

 F_TSMatrix ()
 ~F_TSMatrix ()
 F_TSMatrix (const F_TMatrix< T > &tm, const T &f=(T) 1)
 F_TSMatrix (const F_Matrix< T > &m, const T &f=(T) 1)
 F_TSMatrix (const F_TSMatrix< T > &ts)
T operator() (const unsigned r, const unsigned c)
T get (const unsigned r, const unsigned c) const
F_TSMatrix< T > & eval (F_TMatrix< T > *=0)
 operator TMatrix< T > ()
F_TSMatrix< T > & operator= (const F_TSMatrix< T > &ts)
F_TSMatrix< T > & operator= (const F_TMatrix< T > &tm)
F_TSMatrix< T > & operator*= (const T &f)
F_TSMatrix< T > & operator/= (const T &f)
F_TSMatrix< T > & operator* (const T &f)
F_TSMatrix< T > & operator/ (const T &f)
F_TSMatrix< T > & operator- ()
F_TMatrix< Toperator+ (const F_Matrix< T > &)
F_TMatrix< Toperator+ (const F_TMatrix< T > &)
F_TMatrix< Toperator+ (F_TSMatrix< T >)
F_TMatrix< Toperator+ (const T &)
F_TMatrix< Toperator- (const F_Matrix< T > &)
F_TMatrix< Toperator- (const F_TMatrix< T > &)
F_TMatrix< Toperator- (F_TSMatrix< T >)
F_TMatrix< Toperator- (const T &)
F_TMatrix< Toperator* (const F_Matrix< T > &m)
F_TMatrix< Toperator* (const CSCMatrix< T > &m)
TVector< Toperator* (const Vector< T > &v)
bool operator== (const F_Matrix< T > &)
bool operator!= (const F_Matrix< T > &m)
bool operator== (F_TSMatrix< T >)
bool operator!= (F_TSMatrix< T > ts)
bool operator== (F_TMatrix< T > tm)
bool operator!= (F_TMatrix< T > tm)
double fabs ()
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
Toperator() (const unsigned, const unsigned)
 rw access
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 ()

Protected Member Functions

void destroy ()
T fac ALIGN (MIN_ALIGN)
void clone (bool=false, F_TMatrix< T > *=0)
void detach (F_TMatrix< T > *=0)

Protected Attributes

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

Friends

class F_TMatrix< T >
class F_Matrix< T >
NOINST F_TSMatrix< T > FRIEND_TBCI__ operator*FGD (const T &, F_TSMatrix< T >)
NOINST F_TMatrix< T > FRIEND_TBCI__ operator+FGD (const T &, F_TSMatrix< T >)
NOINST F_TMatrix< T > FRIEND_TBCI__ operator-FGD (const T &, F_TSMatrix< T >)

Detailed Description

template<typename T>
class F_TSMatrix< T >

Temporary object for scaled matrices.

Definition at line 783 of file f_matrix.h.

Member Typedef Documentation

◆ element_type

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

Definition at line 807 of file f_matrix.h.

◆ TALIGN

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

Definition at line 808 of file f_matrix.h.

◆ value_type

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

Definition at line 806 of file f_matrix.h.

Constructor & Destructor Documentation

◆ F_TSMatrix() [1/4]

◆ ~F_TSMatrix()

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

Definition at line 815 of file f_matrix.h.

◆ F_TSMatrix() [2/4]

template<typename T>
F_TSMatrix< T >::F_TSMatrix ( const F_TMatrix< T > & tm,
const T & f = (T)1 )
inline

Definition at line 817 of file f_matrix.h.

References col, dim, endvec, fac, mat, mut, row, T, true, and vec.

◆ F_TSMatrix() [3/4]

template<typename T>
F_TSMatrix< T >::F_TSMatrix ( const F_Matrix< T > & m,
const T & f = (T)1 )
inline

Definition at line 820 of file f_matrix.h.

References col, dim, endvec, fac, false, mat, mut, row, T, and vec.

◆ F_TSMatrix() [4/4]

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

Definition at line 823 of file f_matrix.h.

References col, dim, endvec, F_TSMatrix(), fac, mat, mut, row, ts, and vec.

Member Function Documentation

◆ ALIGN()

template<typename T>
T fac F_TSMatrix< T >::ALIGN ( MIN_ALIGN )
protected

References fac, MIN_ALIGN, and T.

◆ clone()

template<typename T>
void F_TSMatrix< T >::clone ( bool evl = false,
F_TMatrix< T > * tm = 0 )
protected

Definition at line 941 of file f_matrix.h.

References col, detach(), dim, endvec, fac, mat, mut, REGISTER, T, TBCICOPY, TBCIDELETE, and vec.

Referenced by eval().

◆ destroy()

template<typename T>
void F_TSMatrix< T >::destroy ( )
inlineprotected

◆ detach()

template<typename T>
void F_TSMatrix< T >::detach ( F_TMatrix< T > * tm = 0)
inlineprotected

◆ eval()

template<typename T>
F_TSMatrix< T > & F_TSMatrix< T >::eval ( F_TMatrix< T > * tm = 0)
inline

Definition at line 961 of file f_matrix.h.

References clone(), endvec, F_TSMatrix(), fac, mut, REGISTER, T, and vec.

◆ fabs()

template<typename T>
double F_TSMatrix< T >::fabs ( )

Definition at line 1143 of file f_matrix.h.

References ALIGN, F_TMatrix< T >::destroy(), endvec, fabssqr(), fac, MATH__, REGISTER, sqrt(), T, and vec.

◆ get()

template<typename T>
T F_TSMatrix< T >::get ( const unsigned r,
const unsigned c ) const
inline

Definition at line 829 of file f_matrix.h.

References c, fac, mat, and T.

◆ mat_info()

template<typename T>
const char * F_TSMatrix< T >::mat_info ( )
inlinestatic

Definition at line 835 of file f_matrix.h.

◆ operator TMatrix< T >()

template<typename T>
F_TSMatrix< T >::operator TMatrix< T > ( )

Definition at line 1131 of file f_matrix.h.

References c, F_TMatrix< T >::destroy(), F_TSMatrix(), and TMatrix< T >::setval().

◆ operator!=() [1/3]

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

Definition at line 875 of file f_matrix.h.

◆ operator!=() [2/3]

template<typename T>
bool F_TSMatrix< T >::operator!= ( F_TMatrix< T > tm)
inline

Definition at line 881 of file f_matrix.h.

◆ operator!=() [3/3]

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

Definition at line 878 of file f_matrix.h.

References F_TSMatrix(), and ts.

◆ operator()()

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

Definition at line 827 of file f_matrix.h.

References c, destroy(), fac, mat, and T.

◆ operator*() [1/4]

◆ operator*() [2/4]

template<typename T>
F_TMatrix< T > F_TSMatrix< T >::operator* ( const F_Matrix< T > & m)

◆ operator*() [3/4]

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

Definition at line 849 of file f_matrix.h.

References F_TSMatrix(), fac, and T.

◆ operator*() [4/4]

template<typename T>
TVector< T > F_TSMatrix< T >::operator* ( const Vector< T > & v)

◆ operator*=()

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

Definition at line 847 of file f_matrix.h.

References F_TSMatrix(), fac, and T.

◆ operator+() [1/4]

template<typename T>
F_TMatrix< T > F_TSMatrix< T >::operator+ ( const F_Matrix< T > & m)
inline

Definition at line 991 of file f_matrix.h.

◆ operator+() [2/4]

template<typename T>
F_TMatrix< T > F_TSMatrix< T >::operator+ ( const F_TMatrix< T > & tm)
inline

Definition at line 1005 of file f_matrix.h.

◆ operator+() [3/4]

template<typename T>
F_TMatrix< T > F_TSMatrix< T >::operator+ ( const T & a)
inline

Definition at line 1037 of file f_matrix.h.

◆ operator+() [4/4]

template<typename T>
F_TMatrix< T > F_TSMatrix< T >::operator+ ( F_TSMatrix< T > ts)
inline

Definition at line 1023 of file f_matrix.h.

◆ operator-() [1/5]

template<typename T>
F_TSMatrix< T > & F_TSMatrix< T >::operator- ( )
inline

Definition at line 852 of file f_matrix.h.

References F_TSMatrix(), fac, and T.

◆ operator-() [2/5]

template<typename T>
F_TMatrix< T > F_TSMatrix< T >::operator- ( const F_Matrix< T > & m)
inline

Definition at line 992 of file f_matrix.h.

References F_STDDEF_TSM.

◆ operator-() [3/5]

template<typename T>
F_TMatrix< T > F_TSMatrix< T >::operator- ( const F_TMatrix< T > & tm)
inline

Definition at line 1006 of file f_matrix.h.

References F_STDDEF_TSTM.

◆ operator-() [4/5]

template<typename T>
F_TMatrix< T > F_TSMatrix< T >::operator- ( const T & a)
inline

Definition at line 1038 of file f_matrix.h.

References F_STDDEF_TST.

◆ operator-() [5/5]

template<typename T>
F_TMatrix< T > F_TSMatrix< T >::operator- ( F_TSMatrix< T > ts)
inline

Definition at line 1024 of file f_matrix.h.

References F_STDDEF_TSTS.

◆ operator/()

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

Definition at line 850 of file f_matrix.h.

References F_TSMatrix(), fac, and T.

◆ operator/=()

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

Definition at line 848 of file f_matrix.h.

References F_TSMatrix(), fac, and T.

◆ operator=() [1/2]

template<typename T>
F_TSMatrix< T > & F_TSMatrix< T >::operator= ( const F_TMatrix< T > & tm)
inline

◆ operator=() [2/2]

template<typename T>
F_TSMatrix< T > & F_TSMatrix< T >::operator= ( const F_TSMatrix< T > & ts)
inline

Definition at line 838 of file f_matrix.h.

References col, destroy(), dim, endvec, F_TSMatrix(), fac, mat, mut, row, ts, and vec.

◆ operator==() [1/3]

template<typename T>
bool F_TSMatrix< T >::operator== ( const F_Matrix< T > & m)

◆ operator==() [2/3]

template<typename T>
bool F_TSMatrix< T >::operator== ( F_TMatrix< T > tm)
inline

Definition at line 880 of file f_matrix.h.

◆ operator==() [3/3]

template<typename T>
bool F_TSMatrix< T >::operator== ( F_TSMatrix< T > ts)

Definition at line 1112 of file f_matrix.h.

References col, F_TMatrix< T >::destroy(), dim, endvec, F_TSMatrix(), fac, REGISTER, row, T, TBCICOMP, ts, and vec.

◆ F_Matrix< T >

template<typename T>
friend class F_Matrix< T >
friend

Definition at line 808 of file f_matrix.h.

References MIN_ALIGN2, and T.

◆ F_TMatrix< T >

template<typename T>
friend class F_TMatrix< T >
friend

Definition at line 808 of file f_matrix.h.

◆ operator*FGD

template<typename T>
NOINST F_TSMatrix< T > FRIEND_TBCI__ operator*FGD ( const T & ,
F_TSMatrix< T >  )
friend

References F_TSMatrix(), FRIEND_TBCI__, NOINST, and T.

◆ operator+FGD

template<typename T>
NOINST F_TMatrix< T > FRIEND_TBCI__ operator+FGD ( const T & ,
F_TSMatrix< T >  )
friend

References F_TSMatrix(), FRIEND_TBCI__, NOINST, and T.

◆ operator-FGD

template<typename T>
NOINST F_TMatrix< T > FRIEND_TBCI__ operator-FGD ( const T & ,
F_TSMatrix< T >  )
friend

References F_TSMatrix(), FRIEND_TBCI__, NOINST, and T.

Member Data Documentation

◆ col

◆ dim

template<typename T>
unsigned long F_TSMatrix< T >::dim
protected

◆ endvec

template<typename T>
T * F_TSMatrix< T >::endvec
protected

◆ mat

template<typename T>
T** F_TSMatrix< T >::mat
protected

◆ mut

template<typename T>
bool F_TSMatrix< T >::mut
protected

◆ row

◆ vec

template<typename T>
T* F_TSMatrix< T >::vec
protected

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