TBCI::TSVector< T > Class Template Reference

#include <vector.h>

Inheritance diagram for TBCI::TSVector< T >:

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

Collaboration graph
[legend]

List of all members.

Public Types

typedef T value_type
typedef T element_type
typedef T aligned_value_type

Public Member Functions

void detach (const T *=0) const
void destroy () const
const TSVector< T > & eval (const T *vv=0) const
 TSVector ()
 ~TSVector ()
 TSVector (const unsigned long d)
 TSVector (const TSVector< T > &ts)
 TSVector (const TVector< T > &tv, const T &f=(T) 1)
 TSVector (const Vector< T > &v, const T &f=(T) 1)
operator() (const unsigned long i) const
operator[] (const unsigned long i) const
get (const unsigned long i) const
const T & getfac () const
T & getfacref () const
const T & getcref (const unsigned long i) const
TSVector< T > & operator= (const TSVector< T > &ts)
TSVector< T > & operator= (const TVector< T > &tv)
TSVector< T > & operator*= (const T &f)
TSVector< T > & operator/= (const T &f)
const TSVector< T > & operator* (const T &f) const
const TSVector< T > & operator/ (const T &f) const
const TSVector< T > & operator- () const
TVector< T > operator+ (const Vector< T > &) const
 TV = TSV + V.
TVector< T > operator+ (TVector< T >) const
 TV = TSV + TV Transformed to TV += TSV.
TVector< T > operator+ (const TSVector< T > &) const
 TV = TSV + TSV.
TVector< T > operator+ (const T &) const
 TV = TSV + V.
TVector< T > operator- (const Vector< T > &) const
 TV = TSV - V.
TVector< T > operator- (TVector< T >) const
 TV = TSV - TV Transformed to -TV -= TSV.
TVector< T > operator- (const TSVector< T > &) const
 TV = TSV - TSV.
TVector< T > operator- (const T &) const
 TV = TSV - V.
TVector< T > add_t_tsv (const T &) const
 Helper member fn to prevent friendship TV = T + TSV.
TVector< T > sub_t_tsv (const T &) const
 TV = T - TSV.
TVector< T > incr (const unsigned long, const T=(T) 1) const
unsigned long size () const
min ()
max ()
abs () const
double fabs () const
double fabssqr () const
sum ()
bool operator== (const Vector< T > &) const
bool operator!= (const Vector< T > &v) const
bool operator== (const TSVector< T > &) const
bool operator!= (const TSVector< T > &ts) const
bool operator== (const TVector< T > &tv) const
bool operator!= (const TVector< T > &tv) const
T *const & vecptr () const

Static Public Member Functions

static const char * vec_info ()

Public Attributes

bool mut

Protected Member Functions

T fac __attribute__ ((aligned(16)))
void clone (const bool=false, const T *=0) const

Protected Attributes

T * vec
unsigned long dim

Friends

class Vector< T >
class TVector< T >
class CRMatrix< T >
void do_mat_tsv_mult (const unsigned start, const unsigned end, TVector< T > *res, const Matrix< T > *mat, const TSVector< T > *rsv)
double fabssqr (const TSVector< T > &)
std::ostream & operator<< (std::ostream &, const TSVector< T > &)


Detailed Description

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

Scaled temporary Vectors. Optimize operations by deferring the scaling of a Vector. Don't use them explicitly!

Definition at line 1032 of file vector.h.


Member Typedef Documentation

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

Definition at line 1053 of file vector.h.

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

Definition at line 1054 of file vector.h.

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

Definition at line 1055 of file vector.h.


Constructor & Destructor Documentation

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

Definition at line 1059 of file vector.h.

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

mut;

Definition at line 1060 of file vector.h.

template<typename T>
TBCI::TSVector< T >::TSVector ( const unsigned long  d  )  [inline, explicit]

Definition at line 1061 of file vector.h.

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

Definition at line 1063 of file vector.h.

template<typename T>
TBCI::TSVector< T >::TSVector ( const TVector< T > &  tv,
const T &  f = (T)1 
) [inline]

Definition at line 1066 of file vector.h.

template<typename T>
TBCI::TSVector< T >::TSVector ( const Vector< T > &  v,
const T &  f = (T)1 
) [inline]

Definition at line 1068 of file vector.h.


Member Function Documentation

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

template<typename T>
void TBCI::TSVector< T >::clone ( const bool  evl = false,
const T *  vv = 0 
) const [inline, protected]

template<typename T>
void TBCI::TSVector< T >::detach ( const T *  vv = 0  )  const [inline]

template<typename T>
void TBCI::TSVector< T >::destroy (  )  const [inline]

template<typename T>
const TSVector< T > & TBCI::TSVector< T >::eval ( const T *  vv = 0  )  const [inline]

template<typename T>
T TBCI::TSVector< T >::operator() ( const unsigned long  i  )  const [inline]

Reimplemented from TBCI::BVector_Sig< T >.

Definition at line 1072 of file vector.h.

References TBCI::BVector< T >::destroy(), fac(), T, and TBCI::BVector< T >::vec.

Referenced by TBCI::Vector< unsigned >::operator[]().

template<typename T>
T TBCI::TSVector< T >::operator[] ( const unsigned long  i  )  const [inline]

Definition at line 1075 of file vector.h.

References TBCI::TVector< T >::operator()().

template<typename T>
T TBCI::TSVector< T >::get ( const unsigned long  i  )  const [inline]

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

Definition at line 1079 of file vector.h.

References fac().

Referenced by TBCI::ediv(), and TBCI::operator*().

template<typename T>
T& TBCI::TSVector< T >::getfacref (  )  const [inline]

Definition at line 1080 of file vector.h.

References fac().

Referenced by TBCI::ediv(), and TBCI::operator*().

template<typename T>
const T& TBCI::TSVector< T >::getcref ( const unsigned long  i  )  const [inline]

Definition at line 1081 of file vector.h.

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

Referenced by TBCI::ediv().

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

template<typename T>
TSVector<T>& TBCI::TSVector< T >::operator= ( const TVector< T > &  tv  )  [inline]

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

Reimplemented from TBCI::Vector_Sig< T >.

Definition at line 1097 of file vector.h.

References fac().

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

Reimplemented from TBCI::Vector_Sig< T >.

Definition at line 1098 of file vector.h.

References fac().

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

Reimplemented from TBCI::Vector_Sig< T >.

Definition at line 1099 of file vector.h.

References fac().

Referenced by TBCI::Vector< unsigned >::operator*().

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

Reimplemented from TBCI::Vector_Sig< T >.

Definition at line 1100 of file vector.h.

References fac().

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

Definition at line 1102 of file vector.h.

References fac().

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

template<typename T>
TVector< T > TBCI::TSVector< T >::operator+ ( TVector< T >  tv  )  const [inline]

template<typename T>
TVector< T > TBCI::TSVector< T >::operator+ ( const TSVector< T > &  tsv  )  const [inline]

template<typename T>
TVector< T > TBCI::TSVector< T >::operator+ ( const T &  v  )  const [inline]

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

template<typename T>
TVector< T > TBCI::TSVector< T >::operator- ( TVector< T >  tv  )  const [inline]

template<typename T>
TVector< T > TBCI::TSVector< T >::operator- ( const TSVector< T > &  tsv  )  const [inline]

template<typename T>
TVector< T > TBCI::TSVector< T >::operator- ( const T &  v  )  const [inline]

template<typename T>
TVector< T > TBCI::TSVector< T >::add_t_tsv ( const T &  v  )  const [inline]

template<typename T>
TVector< T > TBCI::TSVector< T >::sub_t_tsv ( const T &  v  )  const [inline]

template<typename T>
TVector< T > TBCI::TSVector< T >::incr ( const unsigned long  wh,
const T  i = (T)1 
) const [inline]

Definition at line 1474 of file vector.h.

References BCHK, TBCI::TSVector< T >::dim, and TBCI::BVector< T >::vec.

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

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

Definition at line 1128 of file vector.h.

References TBCI::Vector< T >::min().

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

Definition at line 1129 of file vector.h.

References TBCI::Vector< T >::max().

template<typename T>
T TBCI::TSVector< T >::abs (  )  const [inline]

Definition at line 1130 of file vector.h.

References TBCI::TVector< T >::abs(), CSTD__, fac(), and GLBL__.

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

Definition at line 1132 of file vector.h.

References TBCI::TVector< T >::fabs(), fac(), GLBL__, and MATH__.

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

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

Definition at line 1137 of file vector.h.

References TBCI::BVector< T >::destroy(), fac(), and T.

template<typename T>
bool TBCI::TSVector< T >::operator== ( const Vector< T > &  v  )  const [inline]

template<typename T>
bool TBCI::TSVector< T >::operator!= ( const Vector< T > &  v  )  const [inline]

Definition at line 1162 of file vector.h.

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

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

Definition at line 1164 of file vector.h.

template<typename T>
bool TBCI::TSVector< T >::operator== ( const TVector< T > &  tv  )  const [inline]

Definition at line 1165 of file vector.h.

template<typename T>
bool TBCI::TSVector< T >::operator!= ( const TVector< T > &  tv  )  const [inline]

Definition at line 1166 of file vector.h.

template<typename T>
T* const& TBCI::TSVector< T >::vecptr (  )  const [inline]

Definition at line 1169 of file vector.h.

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

Referenced by TBCI::cediv(), TBCI::cemul(), TBCI::ediv(), and TBCI::emul().

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

Reimplemented from TBCI::BVector_Sig< T >.

Definition at line 1171 of file vector.h.


Friends And Related Function Documentation

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

Definition at line 1047 of file vector.h.

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

Definition at line 1048 of file vector.h.

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

Definition at line 1049 of file vector.h.

template<typename T>
void do_mat_tsv_mult ( const unsigned  start,
const unsigned  end,
TVector< T > *  res,
const Matrix< T > *  mat,
const TSVector< T > *  rsv 
) [friend]

template<typename T>
double fabssqr ( const TSVector< T > &  ts  )  [friend]

Definition at line 1485 of file vector.h.

template<typename T>
std:: ostream& operator<< ( std::ostream &  os,
const TSVector< T > &  ts 
) [friend]

Definition at line 1465 of file vector.h.


Member Data Documentation

template<typename T>
T* TBCI::TSVector< T >::vec [mutable, protected]

template<typename T>
unsigned long TBCI::TSVector< T >::dim [mutable, protected]

template<typename T>
bool TBCI::TSVector< T >::mut [mutable]


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

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