|
TBCI Numerical high perf. C++ Library
2.8.0
|
#include <bvector.h>


Public Types | |
| typedef T | value_type |
| typedef T | element_type |
| typedef T aligned_value_type | TALIGN (MIN_ALIGN2) |
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) | |
| dim (tv.dim) | |
| fac (f) | |
| mut (true) | |
| dim (v.dim) | |
| fac (f) | |
| mut (false) | |
| T | operator() (const unsigned long i) const |
| T | operator[] (const unsigned long i) const |
| T | get (const unsigned long i) const HOT |
| const T & | getfac () const |
| T & | getfacref () const |
| const T & | getcref (const unsigned long i) const HOT |
| 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 HOT |
| TV = TSV + V. More... | |
| TVector< T > | operator+ (TVector< T >) const HOT |
| TV = TSV + TV Transformed to TV += TSV. More... | |
| TVector< T > | operator+ (const TSVector< T > &) const HOT |
| TV = TSV + TSV. More... | |
| TVector< T > | operator+ (const T &) const |
| TV = TSV + V. More... | |
| TVector< T > | operator- (const Vector< T > &) const HOT |
| TV = TSV - V. More... | |
| TVector< T > | operator- (TVector< T >) const HOT |
| TV = TSV - TV Transformed to -TV -= TSV. More... | |
| TVector< T > | operator- (const TSVector< T > &) const HOT |
| TV = TSV - TSV. More... | |
| TVector< T > | operator- (const T &) const |
| TV = TSV - V. More... | |
| TVector< T > | add_t_tsv (const T &) const |
| Helper member fn to prevent friendship TV = T + TSV. More... | |
| TVector< T > | sub_t_tsv (const T &) const |
| TV = T - TSV. More... | |
| TVector< T > | incr (const unsigned long, const T=(T) 1) const |
| unsigned long | size () const |
| T | min () |
| T | max () |
| T | abs () const |
| double | fabs () const |
| double | fabssqr () const |
| T | 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 |
Public Member Functions inherited from Vector_Sig< T > | |
| Vector_Sig () | |
| Vector_Sig (const unsigned) | |
| ~Vector_Sig () | |
| Vector_Sig< T > | operator+ (const Vector_Sig< T > &) const |
| Vector_Sig< T > | operator- (const Vector_Sig< T > &) const |
| Vector_Sig< T > | operator* (const T &) const |
| Vector_Sig< T > | operator/ (const T &) const |
| Vector_Sig< T > & | operator+= (const Vector_Sig< T > &) |
| Vector_Sig< T > & | operator-= (const Vector_Sig< T > &) |
| Vector_Sig< T > & | operator*= (const T &) |
| Vector_Sig< T > & | operator/= (const T &) |
| bool | operator<= (const Vector_Sig< T > &) const |
| bool | operator>= (const Vector_Sig< T > &) const |
| bool | operator< (const Vector_Sig< T > &) const |
| bool | operator> (const Vector_Sig< T > &) const |
Public Member Functions inherited from BVector_Sig< T > | |
| BVector_Sig () | |
| BVector_Sig (const unsigned long) | |
| ~BVector_Sig () | |
| T & | operator() (const unsigned long) |
| tbci_traits< T >::const_refval_type | operator() (const unsigned long) const |
| unsigned long | size () const |
| BVector_Sig< T > & | fill (const T &) |
| BVector_Sig< T > & | clear () |
| bool | operator== (const BVector_Sig< T > &) const |
| bool | operator!= (const BVector_Sig< T > &) const |
Static Public Member Functions | |
| static const char * | vec_info () |
Static Public Member Functions inherited from BVector_Sig< T > | |
| static const char * | vec_info () |
Public Attributes | |
| bool | mut |
| __pad0__: vec(tv.vec) | |
| __pad1__: vec(v.vec) | |
Protected Member Functions | |
| T fac | ALIGN (MIN_ALIGN2) |
| 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 > |
| NOINST void FRIEND_TBCI2__ do_mat_tsv_mult | FGD (const unsigned start, const unsigned end, TVector< T > *res, const Matrix< T > *mat, const TSVector< T > *rsv) |
| NOINST double FRIEND_TBCI__ fabssqr | FGDT (const TSVector< T > &) |
| STD__ ostream & | operator<< FGD (STD__ ostream &, const TSVector< T > &) |
Scaled temporary Vectors. Optimize operations by deferring the scaling of a Vector. Don't use them explicitly!
| typedef T TSVector< T >::element_type |
| typedef T aligned_value_type TSVector< T >::TALIGN(MIN_ALIGN2) |
Definition at line 1124 of file vector.h.
References CSTD__, TSVector< T >::fac(), and GLBL__.
Helper member fn to prevent friendship TV = T + TSV.
Definition at line 1420 of file vector.h.
References BVector< T >::dim, fac, LIKELY, BVector< T >::resize(), CRMatrix< T >::size(), STD_SMP_TEMPLATE4C, and BVector< T >::vec.
Referenced by operator+().
|
mutableprotected |
Definition at line 1172 of file vector.h.
References LIKELY, T, and TBCIDELETE.
Referenced by cediv(), cemul(), ediv(), emul(), TSVector< T >::operator()(), CRMatrix< T >::operator*(), CSCMatrix< T >::operator*(), TVector< T >::operator+(), TSVector< T >::operator+(), TVector< T >::operator+=(), TVector< T >::operator-(), TSVector< T >::operator-(), TVector< T >::operator-=(), operator<<(), TSVector< T >::operator=(), TSVector< T >::operator==(), Vector< T >::operator==(), and TSVector< T >::sum().
Definition at line 1221 of file vector.h.
References fac, REGISTER, STD_SMP_TEMPLATE2C, and T.
Referenced by TVector< T >::operator=(), TVector< T >::TVector(), and Vector< unsigned >::Vector().
Definition at line 1126 of file vector.h.
References TSVector< T >::fac(), GLBL__, and MATH__.
Referenced by TSVector< T >::abs(), TSVector< T >::fabs(), TSVector< T >::fabssqr(), TSVector< T >::get(), TSVector< T >::getfac(), TSVector< T >::getfacref(), TSVector< T >::operator()(), TSVector< T >::operator*(), TSVector< T >::operator*=(), TVector< T >::operator+(), TSVector< T >::operator+(), Vector< T >::operator+(), TVector< T >::operator+=(), TVector< T >::operator-(), TSVector< T >::operator-(), Vector< T >::operator-(), TVector< T >::operator-=(), TSVector< T >::operator/(), TSVector< T >::operator/=(), operator<<(), TVector< T >::operator=(), TSVector< T >::operator=(), TSVector< T >::operator==(), Vector< T >::operator==(), and TSVector< T >::sum().
Definition at line 1072 of file vector.h.
References TSVector< T >::fac(), i, and TSVector< T >::vec.
Referenced by cediv(), cemul(), ediv(), emul(), CRMatrix< T >::operator*(), and CSCMatrix< T >::operator*().
Definition at line 1075 of file vector.h.
References i, and TSVector< T >::vec.
Referenced by ediv().
Definition at line 1073 of file vector.h.
References TSVector< T >::fac().
Referenced by ediv(), and operator*().
Definition at line 1074 of file vector.h.
References TSVector< T >::fac().
Referenced by ediv(), and operator*().
|
inline |
Definition at line 1468 of file vector.h.
References BCHK, i, and BVector< T >::vec.
Definition at line 1123 of file vector.h.
References Vector< T >::max().
Definition at line 1122 of file vector.h.
References Vector< T >::min().
Definition at line 1066 of file vector.h.
References TSVector< T >::destroy(), TSVector< T >::fac(), i, T, and TSVector< T >::vec.
Referenced by TSVector< T >::operator[]().
Definition at line 1093 of file vector.h.
References TSVector< T >::fac().
Definition at line 1091 of file vector.h.
References TSVector< T >::fac().
TV = TSV + V.
Definition at line 1320 of file vector.h.
References BCHK, BVector< T >::dim, dims, fac, LIKELY, BVector< T >::resize(), STD_SMP_TEMPLATE4V, and BVector< T >::vec.
TV = TSV + TV Transformed to TV += TSV.
Definition at line 1298 of file vector.h.
References BCHK, CRMatrix< T >::destroy(), BVector< T >::dim, dims, fac, STD_SMP_TEMPLATE3VC, and BVector< T >::vec.
|
inline |
TV = TSV + TSV.
Definition at line 1351 of file vector.h.
References BCHK, TSVector< T >::destroy(), BVector< T >::dim, TSVector< T >::dim, dims, fac, TSVector< T >::fac(), LIKELY, TSVector< T >::mut, BVector< T >::resize(), STD_SMP_TEMPLATE5, UNLIKELY, BVector< T >::vec, and TSVector< T >::vec.
TV = TSV + V.
Definition at line 1390 of file vector.h.
References BVector< T >::dim, fac, LIKELY, BVector< T >::resize(), STD_SMP_TEMPLATE4C, and BVector< T >::vec.
Definition at line 1096 of file vector.h.
References TSVector< T >::fac().
TV = TSV - V.
Definition at line 1335 of file vector.h.
References BCHK, BVector< T >::dim, dims, fac, LIKELY, BVector< T >::resize(), STD_SMP_TEMPLATE4V, and BVector< T >::vec.
TV = TSV - TV Transformed to -TV -= TSV.
Definition at line 1309 of file vector.h.
References BCHK, CRMatrix< T >::destroy(), BVector< T >::dim, dims, fac, STD_SMP_TEMPLATE3VC, and BVector< T >::vec.
|
inline |
TV = TSV - TSV.
Definition at line 1370 of file vector.h.
References BCHK, TSVector< T >::destroy(), BVector< T >::dim, TSVector< T >::dim, dims, fac, TSVector< T >::fac(), LIKELY, TSVector< T >::mut, BVector< T >::resize(), STD_SMP_TEMPLATE5, UNLIKELY, BVector< T >::vec, and TSVector< T >::vec.
TV = TSV - V.
Definition at line 1404 of file vector.h.
References BVector< T >::dim, fac, LIKELY, BVector< T >::resize(), STD_SMP_TEMPLATE4C, and BVector< T >::vec.
Definition at line 1094 of file vector.h.
References TSVector< T >::fac().
Definition at line 1092 of file vector.h.
References TSVector< T >::fac().
Definition at line 1078 of file vector.h.
References TSVector< T >::destroy(), TSVector< T >::dim, TSVector< T >::fac(), TSVector< T >::mut, and TSVector< T >::vec.
Definition at line 1081 of file vector.h.
References TSVector< T >::destroy(), BVector< T >::dim, TSVector< T >::dim, TSVector< T >::fac(), TSVector< T >::mut, T, BVector< T >::vec, and TSVector< T >::vec.
Definition at line 1241 of file vector.h.
References CRMatrix< T >::destroy(), BVector< T >::dim, fac, i, LIKELY, REGISTER, T, TBCICOMP, UNLIKELY, and BVector< T >::vec.
Definition at line 1268 of file vector.h.
References CRMatrix< T >::destroy(), TSVector< T >::destroy(), TSVector< T >::dim, fac, TSVector< T >::fac(), i, LIKELY, REGISTER, T, TBCICOMP, UNLIKELY, and TSVector< T >::vec.
Definition at line 1069 of file vector.h.
References TSVector< T >::operator()().
Definition at line 1120 of file vector.h.
References TSVector< T >::dim.
Referenced by cediv(), cemul(), dot(), ediv(), emul(), HOTDECL(), CRMatrix< T >::operator*(), CSCMatrix< T >::operator*(), Vector< T >::operator*(), Matrix< T >::operator*(), Vector< T >::operator+(), and Vector< T >::operator-().
TV = T - TSV.
Definition at line 1440 of file vector.h.
References BVector< T >::dim, fac, LIKELY, BVector< T >::resize(), CRMatrix< T >::size(), STD_SMP_TEMPLATE4C, and BVector< T >::vec.
Referenced by operator-().
Definition at line 1131 of file vector.h.
References TSVector< T >::destroy(), TSVector< T >::fac(), and T.
|
friend |
|
friend |
|
friend |
Definition at line 1029 of file vector.h.
Referenced by cediv(), cemul(), ediv(), emul(), Vector< T >::fabssqr(), HOTDECL(), Vector< T >::max(), Vector< T >::min(), Vector< T >::operator*(), TVector< T >::operator+(), TSVector< T >::operator+(), Vector< T >::operator+(), TVector< T >::operator+=(), TVector< T >::operator-(), TSVector< T >::operator-(), Vector< T >::operator-(), TVector< T >::operator-=(), operator<<(), TVector< T >::operator=(), TSVector< T >::operator=(), TSVector< T >::operator==(), Vector< T >::operator==(), TSVector< T >::size(), Vector< T >::sum(), TVector< T >::TVector(), Vector< unsigned >::Vector(), and Vector< T >::Vector().
Definition at line 1037 of file vector.h.
Referenced by cediv(), cemul(), ediv(), emul(), TSVector< T >::operator+(), Vector< T >::operator+(), TSVector< T >::operator-(), Vector< T >::operator-(), TVector< T >::operator=(), and TSVector< T >::operator=().
Definition at line 1029 of file vector.h.
Referenced by Vector< T >::fabssqr(), TSVector< T >::get(), TSVector< T >::getcref(), Vector< T >::max(), Vector< T >::min(), TSVector< T >::operator()(), Vector< T >::operator*(), TVector< T >::operator+(), TSVector< T >::operator+(), Vector< T >::operator+(), TVector< T >::operator+=(), TVector< T >::operator-(), TSVector< T >::operator-(), Vector< T >::operator-(), TVector< T >::operator-=(), operator<<(), TVector< T >::operator=(), TSVector< T >::operator=(), TSVector< T >::operator==(), Vector< T >::operator==(), Vector< T >::sum(), TVector< T >::TVector(), TSVector< T >::vecptr(), Vector< unsigned >::Vector(), and Vector< T >::Vector().
1.8.5