#include <vector.h>


Public Types | |
| typedef T | value_type |
| typedef T | element_type |
| typedef T | aligned_value_type |
Public Member Functions | |
| TVector (const unsigned long d=0) | |
| TVector (const T &val, const unsigned long d) | |
| TVector (const BVector< T > &bv) | |
| TVector (const Vector< T > &v) | |
| TVector (const TVector< T > &tv) | |
| TVector (const TSVector< T > &ts) | |
| TVector (const Mat_Brack< T > &) | |
| ~TVector () | |
| unsigned long | size () const |
| TVector< T > & | operator= (const T &a) |
| TVector< T > & | operator= (const Vector< T > &v) |
| TVector< T > & | operator= (const TVector< T > &tv) |
| alias | |
| TVector< T > & | operator= (const TSVector< T > &ts) |
| bool | operator== (const TVector< T > &tv) const |
| bool | operator!= (const TVector< T > &tv) const |
| bool | operator== (const Vector< T > &v) const |
| bool | operator!= (const Vector< T > &v) const |
| bool | operator== (const BVector< T > &bv) const |
| KG, 2001-06-29: Strange: If we don't inline this, we seems to get better performance in our solver benchmark (iPIII). | |
| bool | operator!= (const BVector< T > &v) const |
| bool | operator== (const TSVector< T > &tsv) const |
| bool | operator!= (const TSVector< T > &tsv) const |
| TVector< T > & | operator+= (const T &) |
| TV += a. | |
| TVector< T > & | operator-= (const T &) |
| TV -= a. | |
| TVector< T > & | operator*= (const T &) |
| TV *= a. | |
| TVector< T > & | operator/= (const T &) |
| TV /= a. | |
| TVector< T > & | operator+= (const Vector< T > &) |
| TV += V. | |
| TVector< T > & | operator-= (const Vector< T > &) |
| TV -= V. | |
| TVector< T > & | operator+= (const TVector< T > &tv) |
| TVector< T > & | operator-= (const TVector< T > &tv) |
| TVector< T > & | operator+= (const TSVector< T > &tsv) |
| TV += TSV. | |
| TVector< T > & | operator-= (const TSVector< T > &tsv) |
| TV -= TSV. | |
| T | min () |
| T | max () |
| T | sum () |
| double | fabssqr () |
| double | fabs () |
| T | abs () |
| TVector< T > & | operator+ (const Vector< T > &) |
| TVector< T > & | operator- (const Vector< T > &) |
| TVector< T > & | operator+ (const TSVector< T > &ts) |
| TV = TV + TSV Transformed to TV += TSV. | |
| TVector< T > & | operator- (const TSVector< T > &ts) |
| TV = TV - TSV Transformed to TV -= TSV. | |
| const TVector< T > & | operator+ (const TVector< T > &a) |
| TV = TV + TV Transformed to TV += TV. | |
| const TVector< T > & | operator- (const TVector< T > &a) |
| TV = TV - TV Transformed to TV -= TV. | |
| T | operator() (const unsigned long i) |
| T | operator[] (const unsigned long i) |
| const T & | getcref (const unsigned long i) const |
| tbci_traits< T >::const_refval_type | get (const unsigned long i) const |
| T & | setval (const unsigned long i) const |
| T & | setval (const T &val, const unsigned long i) const |
| T & | set (const T &val, const unsigned long i) const |
| TVector< T > | slice (const unsigned long, const unsigned long) |
| TVector< T > & | incr (const unsigned long, const T=(T) 1) |
| TVector< T > & | operator+ (const T &) |
| TVector< T > & | operator- (const T &) |
| TSVector< T > | operator* (const T &) |
| TSVector< T > | operator/ (const T &) |
| TSVector< T > | operator- () |
| T | operator* (const Vector< T > &v) |
| T | operator* (TVector< T > &tv) |
| template<typename U> | |
| TVector (const BVector< U > &bv) | |
Static Public Member Functions | |
| static const char * | vec_info () |
Friends | |
| class | Vector< T > |
| class | TSVector< T > |
| class | Matrix< T > |
| class | BdMatrix< T > |
| TVector< T > | conj (const Vector< T > &) |
| TVector< T > | real (const Vector< T > &) |
| TVector< T > | imag (const Vector< T > &) |
| TVector< T > & | conj (TVector< T > &) |
| TVector< T > & | real (TVector< T > &) |
| TVector< T > & | imag (TVector< T > &) |
| std::ostream & | operator<< (std::ostream &, const TVector< T > &) |
| void | do_mat_vec_mult (const unsigned start, const unsigned end, TVector< T > *res, const Matrix< T > *mat, const Vector< T > *vec) |
| void | do_mat_tsv_mult (const unsigned start, const unsigned end, TVector< T > *res, const Matrix< T > *mat, const TSVector< T > *rsv) |
| void | do_mat_vec_transmult (const unsigned start, const unsigned end, TVector< T > *res, const Matrix< T > *mat, const Vector< T > *vec) |
Unlike real Vectors it can be copied by aliasing. Never use TVectors in your programs explicitly!
Definition at line 81 of file vector.h.
| typedef T TBCI::TVector< T >::value_type |
Reimplemented from TBCI::BVector< T >.
Reimplemented in TBCI::Vector< T >, and TBCI::Vector< unsigned >.
| typedef T TBCI::TVector< T >::element_type |
Reimplemented from TBCI::BVector< T >.
Reimplemented in TBCI::Vector< T >, and TBCI::Vector< unsigned >.
| typedef T TBCI::TVector< T >::aligned_value_type |
Reimplemented from TBCI::BVector< T >.
Reimplemented in TBCI::Vector< T >, and TBCI::Vector< unsigned >.
| TBCI::TVector< T >::TVector | ( | const unsigned long | d = 0 |
) | [inline, explicit] |
| TBCI::TVector< T >::TVector | ( | const T & | val, | |
| const unsigned long | d | |||
| ) | [inline] |
| TBCI::TVector< T >::TVector | ( | const BVector< T > & | bv | ) | [inline] |
| TBCI::TVector< T >::TVector | ( | const Vector< T > & | v | ) | [inline] |
| TBCI::TVector< T >::TVector | ( | const TVector< T > & | tv | ) | [inline] |
| TBCI::TVector< T >::TVector | ( | const TSVector< T > & | ts | ) | [inline, explicit] |
| TBCI::TVector< T >::TVector | ( | const Mat_Brack< T > & | mb | ) | [inline] |
Definition at line 2306 of file matrix.h.
References TBCI::BVector< T >::dim, TBCI::Mat_Brack< T >::idx, TBCI::Mat_Brack< T >::tmat, and TBCI::BVector< T >::vec.
| TBCI::TVector< T >::~TVector | ( | ) | [inline] |
| TBCI::TVector< T >::TVector | ( | const BVector< U > & | bv | ) | [inline, explicit] |
| unsigned long TBCI::TVector< T >::size | ( | ) | const [inline] |
Reimplemented from TBCI::BVector< T >.
Definition at line 113 of file vector.h.
Referenced by TBCI::basis_trafo(), TBCI::Basis_Trafo(), TBCI::cediv(), TBCI::cemul(), TBCI::chisq(), TBCI::Chisq(), TBCI::chisquare(), TBCI::Chisquare_2D(), TBCI::conj(), TBCI::Tensor< T >::contract(), TBCI::Matrix< T >::div_rows(), TBCI::BdMatrix< T >::div_rows(), TBCI::do_fbdmat_vec_mul(), TBCI::dot(), TBCI::BdMatrix< T >::dotMult(), TBCI::ediv(), TBCI::emul(), TBCI::grid_min(), TBCI::Grid_Min_2D(), TBCI::Index::idx_fill_in1(), TBCI::Index::idx_fill_in2(), TBCI::imag(), TBCI::lev_mar(), TBCI::LM_fit_2D(), TBCI::LU_bkw_subst(), TBCI::LU_fwd_subst(), TBCI::lu_solve(), TBCI::lu_solve_expert(), TBCI::CSCMatrix< T >::MatVecMult(), TBCI::CRMatrix< T >::MatVecMult(), TBCI::Matrix< T >::mult_rows(), TBCI::BdMatrix< T >::mult_rows(), TBCI::Vector< T >::operator*(), TBCI::Symm_BdMatrix< T >::operator*(), TBCI::Matrix< T >::operator*(), TBCI::TSMatrix< T >::operator*(), TBCI::F_TSMatrix< T >::operator*(), TBCI::CSCMatrix< T >::operator*(), TBCI::CRMatrix< T >::operator*(), TBCI::BdMatrix< T >::operator*(), TBCI::Vector< T >::operator+(), TBCI::operator+(), TBCI::Vector< T >::operator-(), TBCI::operator-(), TBCI::TVector< T >::operator=(), TBCI::par_comp(), TBCI::partial_del(), TBCI::Partial_Del(), TBCI::real(), TBCI::CTensor< T >::resize(), TBCI::CRMatrix< T >::set_row(), TBCI::BdMatrix< T >::set_row(), TBCI::ILU0_BdMatrixPreconditioner< T >::solve(), TBCI::DILU_BdMatrixPreconditioner< T >::solve(), TBCI::sv_decomp_backsub(), TBCI::Matrix< T >::transMult(), TBCI::F_BandMatrix< T >::transMult(), TBCI::CSCMatrix< T >::transMult(), TBCI::CRMatrix< T >::transMult(), and TBCI::BdMatrix< T >::transMult().
| TVector<T>& TBCI::TVector< T >::operator= | ( | const T & | a | ) | [inline] |
Reimplemented from TBCI::BVector< T >.
Reimplemented in TBCI::Vector< T >, and TBCI::Vector< unsigned >.
| TVector<T>& TBCI::TVector< T >::operator= | ( | const Vector< T > & | v | ) | [inline] |
Reimplemented in TBCI::Vector< T >, and TBCI::Vector< unsigned >.
| TVector< T > & TBCI::TVector< T >::operator= | ( | const TVector< T > & | tv | ) | [inline] |
alias
Reimplemented in TBCI::Vector< T >, and TBCI::Vector< unsigned >.
Definition at line 251 of file vector.h.
References BCHK, TBCI::BVector< T >::destroy(), TBCI::BVector< T >::dim, LIKELY, TBCI::TVector< T >::size(), and TBCI::BVector< T >::vec.
| TVector< T > & TBCI::TVector< T >::operator= | ( | const TSVector< T > & | ts | ) | [inline] |
Reimplemented in TBCI::Vector< T >, and TBCI::Vector< unsigned >.
Definition at line 266 of file vector.h.
References BCHK, TBCI::BVector< T >::destroy(), TBCI::TSVector< T >::dim, TBCI::BVector< T >::dim, TBCI::TSVector< T >::eval(), LIKELY, TBCI::TSVector< T >::mut, TBCI::TVector< T >::size(), T, TBCI::TSVector< T >::vec, and TBCI::BVector< T >::vec.
| bool TBCI::TVector< T >::operator== | ( | const TVector< T > & | tv | ) | const [inline] |
Reimplemented in TBCI::Vector< T >, and TBCI::Vector< unsigned >.
| bool TBCI::TVector< T >::operator!= | ( | const TVector< T > & | tv | ) | const [inline] |
Reimplemented in TBCI::Vector< T >, and TBCI::Vector< unsigned >.
| bool TBCI::TVector< T >::operator== | ( | const Vector< T > & | v | ) | const [inline] |
Reimplemented in TBCI::Vector< T >, and TBCI::Vector< unsigned >.
| bool TBCI::TVector< T >::operator!= | ( | const Vector< T > & | v | ) | const [inline] |
Reimplemented in TBCI::Vector< T >, and TBCI::Vector< unsigned >.
| bool TBCI::TVector< T >::operator== | ( | const BVector< T > & | bv | ) | const [inline] |
KG, 2001-06-29: Strange: If we don't inline this, we seems to get better performance in our solver benchmark (iPIII).
Reimplemented from TBCI::BVector< T >.
| bool TBCI::TVector< T >::operator!= | ( | const BVector< T > & | v | ) | const [inline] |
| bool TBCI::TVector< T >::operator== | ( | const TSVector< T > & | tsv | ) | const [inline] |
Reimplemented in TBCI::Vector< T >, and TBCI::Vector< unsigned >.
| bool TBCI::TVector< T >::operator!= | ( | const TSVector< T > & | tsv | ) | const [inline] |
Reimplemented in TBCI::Vector< T >, and TBCI::Vector< unsigned >.
| TVector< T > & TBCI::TVector< T >::operator+= | ( | const T & | a | ) | [inline] |
TV += a.
Definition at line 672 of file vector.h.
References TBCI::BVector< T >::dim, STD_SMP_TEMPLATE2C, and TBCI::BVector< T >::vec.
Referenced by TBCI::TVector< T >::operator+().
| TVector< T > & TBCI::TVector< T >::operator-= | ( | const T & | a | ) | [inline] |
TV -= a.
Definition at line 679 of file vector.h.
References TBCI::BVector< T >::dim, STD_SMP_TEMPLATE2C, and TBCI::BVector< T >::vec.
Referenced by TBCI::TVector< T >::operator-().
| TVector< T > & TBCI::TVector< T >::operator*= | ( | const T & | a | ) | [inline] |
TV *= a.
Reimplemented from TBCI::Vector_Sig< T >.
Definition at line 686 of file vector.h.
References TBCI::BVector< T >::dim, STD_SMP_TEMPLATE2C, and TBCI::BVector< T >::vec.
Referenced by TBCI::TVector< T >::operator/=().
| TVector< T > & TBCI::TVector< T >::operator/= | ( | const T & | a | ) | [inline] |
TV /= a.
Reimplemented from TBCI::Vector_Sig< T >.
Definition at line 694 of file vector.h.
References BCHK, TBCI::TVector< T >::operator*=(), and T.
| TVector< T > & TBCI::TVector< T >::operator+= | ( | const Vector< T > & | a | ) | [inline] |
TV += V.
Definition at line 703 of file vector.h.
References BCHK, TBCI::BVector< T >::dim, STD_SMP_TEMPLATE2V, and TBCI::BVector< T >::vec.
| TVector< T > & TBCI::TVector< T >::operator-= | ( | const Vector< T > & | a | ) | [inline] |
TV -= V.
Definition at line 711 of file vector.h.
References BCHK, TBCI::BVector< T >::dim, STD_SMP_TEMPLATE2V, and TBCI::BVector< T >::vec.
| TVector<T>& TBCI::TVector< T >::operator+= | ( | const TVector< T > & | tv | ) | [inline] |
| TVector<T>& TBCI::TVector< T >::operator-= | ( | const TVector< T > & | tv | ) | [inline] |
| TVector< T > & TBCI::TVector< T >::operator+= | ( | const TSVector< T > & | tsv | ) | [inline] |
TV += TSV.
Definition at line 720 of file vector.h.
References BCHK, TBCI::TSVector< T >::destroy(), TBCI::TSVector< T >::dim, TBCI::BVector< T >::dim, LIKELY, STD_SMP_TEMPLATE3VC, TBCI::TSVector< T >::vec, and TBCI::BVector< T >::vec.
| TVector< T > & TBCI::TVector< T >::operator-= | ( | const TSVector< T > & | tsv | ) | [inline] |
TV -= TSV.
Definition at line 730 of file vector.h.
References BCHK, TBCI::TSVector< T >::destroy(), TBCI::TSVector< T >::dim, TBCI::BVector< T >::dim, LIKELY, STD_SMP_TEMPLATE3VC, TBCI::TSVector< T >::vec, and TBCI::BVector< T >::vec.
| T TBCI::TVector< T >::min | ( | ) | [inline] |
| T TBCI::TVector< T >::max | ( | ) | [inline] |
| T TBCI::TVector< T >::sum | ( | ) | [inline] |
| double TBCI::TVector< T >::fabssqr | ( | ) | [inline] |
Definition at line 159 of file vector.h.
Referenced by std::fabs(), TBCI::fabssqr(), and TBCI::TSVector< T >::fabssqr().
| double TBCI::TVector< T >::fabs | ( | ) | [inline] |
Definition at line 160 of file vector.h.
Referenced by TBCI::TSVector< T >::fabs(), and std::fabs().
| T TBCI::TVector< T >::abs | ( | ) | [inline] |
| TVector< T > & TBCI::TVector< T >::operator+ | ( | const Vector< T > & | a | ) | [inline] |
| TVector< T > & TBCI::TVector< T >::operator- | ( | const Vector< T > & | a | ) | [inline] |
| TVector< T > & TBCI::TVector< T >::operator+ | ( | const TSVector< T > & | ts | ) | [inline] |
TV = TV + TSV Transformed to TV += TSV.
Definition at line 933 of file vector.h.
References BCHK, TBCI::TSVector< T >::destroy(), TBCI::TSVector< T >::dim, TBCI::BVector< T >::dim, LIKELY, STD_SMP_TEMPLATE3VC, TBCI::TSVector< T >::vec, and TBCI::BVector< T >::vec.
| TVector< T > & TBCI::TVector< T >::operator- | ( | const TSVector< T > & | ts | ) | [inline] |
TV = TV - TSV Transformed to TV -= TSV.
Definition at line 948 of file vector.h.
References BCHK, TBCI::TSVector< T >::destroy(), TBCI::TSVector< T >::dim, TBCI::BVector< T >::dim, LIKELY, STD_SMP_TEMPLATE3VC, TBCI::TSVector< T >::vec, and TBCI::BVector< T >::vec.
| const TVector< T > & TBCI::TVector< T >::operator+ | ( | const TVector< T > & | a | ) | [inline] |
TV = TV + TV Transformed to TV += TV.
Definition at line 759 of file vector.h.
References BCHK, TBCI::BVector< T >::destroy(), TBCI::BVector< T >::dim, STD_SMP_TEMPLATE2V, and TBCI::BVector< T >::vec.
| const TVector< T > & TBCI::TVector< T >::operator- | ( | const TVector< T > & | a | ) | [inline] |
TV = TV - TV Transformed to TV -= TV.
Definition at line 770 of file vector.h.
References BCHK, TBCI::BVector< T >::destroy(), TBCI::BVector< T >::dim, STD_SMP_TEMPLATE2V, and TBCI::BVector< T >::vec.
| T TBCI::TVector< T >::operator() | ( | const unsigned long | i | ) | [inline] |
Reimplemented from TBCI::BVector< T >.
Reimplemented in TBCI::Vector< T >, and TBCI::Vector< unsigned >.
Definition at line 191 of file vector.h.
Referenced by TBCI::TSVector< T >::operator[]().
| T TBCI::TVector< T >::operator[] | ( | const unsigned long | i | ) | [inline] |
Reimplemented from TBCI::BVector< T >.
Reimplemented in TBCI::Vector< T >, and TBCI::Vector< unsigned >.
| const T& TBCI::TVector< T >::getcref | ( | const unsigned long | i | ) | const [inline] |
Reimplemented from TBCI::BVector< T >.
Definition at line 197 of file vector.h.
Referenced by TBCI::cediv(), TBCI::cemul(), TBCI::do_bdmat_vec_dotmult(), TBCI::do_bdmat_vec_mult(), TBCI::do_bdmat_vec_transmult(), TBCI::ediv(), TBCI::emul(), TBCI::operator+(), TBCI::operator-(), and TBCI::par_comp().
| tbci_traits<T>::const_refval_type TBCI::TVector< T >::get | ( | const unsigned long | i | ) | const [inline] |
Definition at line 199 of file vector.h.
Referenced by TBCI::cediv(), TBCI::cemul(), TBCI::conj(), TBCI::ediv(), TBCI::emul(), TBCI::imag(), TBCI::LU_bkw_subst(), TBCI::LU_fwd_subst(), TBCI::TSMatrix< T >::operator*(), TBCI::real(), TBCI::ILU0_BdMatrixPreconditioner< T >::solve(), TBCI::ILU0_Symm_BdMatrixPreconditioner< T >::solve(), and TBCI::DiagPreconditioner< T, MatrixType >::solve().
| T& TBCI::TVector< T >::setval | ( | const unsigned long | i | ) | const [inline] |
Definition at line 201 of file vector.h.
Referenced by TBCI::cediv(), TBCI::cemul(), TBCI::do_bdmat_vec_dotmult(), TBCI::do_bdmat_vec_mult(), TBCI::do_bdmat_vec_transmult(), TBCI::ediv(), TBCI::emul(), TBCI::Symm_BdMatrix< T >::operator*(), TBCI::CSCMatrix< T >::operator*(), TBCI::operator+(), TBCI::operator-(), TBCI::ILU0_BdMatrixPreconditioner< T >::solve(), TBCI::ILU0_Symm_BdMatrixPreconditioner< T >::solve(), TBCI::DILU_BdMatrixPreconditioner< T >::solve(), and TBCI::CRMatrix< T >::transMult().
| T& TBCI::TVector< T >::setval | ( | const T & | val, | |
| const unsigned long | i | |||
| ) | const [inline] |
| T& TBCI::TVector< T >::set | ( | const T & | val, | |
| const unsigned long | i | |||
| ) | const [inline] |
Definition at line 203 of file vector.h.
Referenced by TBCI::cediv(), TBCI::cemul(), TBCI::conj(), TBCI::do_bdmat_vec_dotmult(), TBCI::do_bdmat_vec_mult(), TBCI::do_bdmat_vec_transmult(), TBCI::do_fbdmat_vec_mul(), TBCI::ediv(), TBCI::emul(), TBCI::F_BandMatrix< T >::get_col(), TBCI::BdMatrix< T >::get_col(), TBCI::CRMatrix< T >::get_row(), TBCI::BdMatrix< T >::get_row(), TBCI::Index::idx_fill_in1(), TBCI::Index::idx_fill_in2(), TBCI::Index::idx_remove1(), TBCI::Index::idx_remove2(), TBCI::Index::idx_set1(), TBCI::imag(), TBCI::LU_bkw_subst(), TBCI::LU_fwd_subst(), TBCI::TSMatrix< T >::operator*(), TBCI::F_Matrix< T >::operator*(), TBCI::F_TSMatrix< T >::operator*(), TBCI::CRMatrix< T >::operator*(), TBCI::real(), TBCI::DiagPreconditioner< T, MatrixType >::solve(), TBCI::sv_decomp_backsub(), TBCI::F_BandMatrix< T >::transMult(), and TBCI::CSCMatrix< T >::transMult().
| TVector< T > TBCI::TVector< T >::slice | ( | const unsigned long | i0, | |
| const unsigned long | i1 | |||
| ) | [inline] |
Definition at line 962 of file vector.h.
References BCHK, TBCI::BVector< T >::dim, T, TBCIDELETE, UNLIKELY, and TBCI::BVector< T >::vec.
| TVector< T > & TBCI::TVector< T >::incr | ( | const unsigned long | wh, | |
| const T | i = (T)1 | |||
| ) | [inline] |
Definition at line 979 of file vector.h.
References BCHK, TBCI::BVector< T >::dim, and TBCI::BVector< T >::vec.
| TVector< T > & TBCI::TVector< T >::operator+ | ( | const T & | a | ) | [inline] |
| TVector< T > & TBCI::TVector< T >::operator- | ( | const T & | a | ) | [inline] |
| TSVector< T > TBCI::TVector< T >::operator* | ( | const T & | a | ) | [inline] |
| TSVector< T > TBCI::TVector< T >::operator/ | ( | const T & | a | ) | [inline] |
| TSVector< T > TBCI::TVector< T >::operator- | ( | ) | [inline] |
| T TBCI::TVector< T >::operator* | ( | const Vector< T > & | v | ) | [inline] |
| T TBCI::TVector< T >::operator* | ( | TVector< T > & | tv | ) | [inline] |
| static const char* TBCI::TVector< T >::vec_info | ( | ) | [inline, static] |
Reimplemented from TBCI::BVector< T >.
Reimplemented in TBCI::Vector< T >, and TBCI::Vector< unsigned >.
friend class TSVector< T > [friend] |
Reimplemented in TBCI::Vector< T >, and TBCI::Vector< unsigned >.
| std:: ostream& operator<< | ( | std::ostream & | os, | |
| const TVector< T > & | tv | |||
| ) | [friend] |
| void do_mat_vec_mult | ( | const unsigned | start, | |
| const unsigned | end, | |||
| TVector< T > * | res, | |||
| const Matrix< T > * | mat, | |||
| const Vector< T > * | vec | |||
| ) | [friend] |
| void do_mat_tsv_mult | ( | const unsigned | start, | |
| const unsigned | end, | |||
| TVector< T > * | res, | |||
| const Matrix< T > * | mat, | |||
| const TSVector< T > * | rsv | |||
| ) | [friend] |
| void do_mat_vec_transmult | ( | const unsigned | start, | |
| const unsigned | end, | |||
| TVector< T > * | res, | |||
| const Matrix< T > * | mat, | |||
| const Vector< T > * | vec | |||
| ) | [friend] |
1.5.6