|
TBCI Numerical high perf. C++ Library 2.8.0
|
provides basic Vector functionality but arithmetic operators (+=, - , *, /...). More...
#include <bvector.h>


Public Types | |
| typedef T * | iterator |
| STL-like iterator support. | |
| typedef const T * | const_iterator |
Public Member Functions | |
| BVector (const unsigned long=0) | |
| BVector (const T &, const unsigned long) | |
| BVector (const BVector< T > &) HOT | |
| copy constructor | |
| BVector (const vararg va,...) | |
| void | destroy () |
| ~BVector () | |
| BVector< T > & | init_0 () |
| BVector< T > & | fill (const T &) HOT |
| BVector< T > & | resize (const BVector< T > &) |
| Actually it's a resize and copy (some people would expect the assignment op to do this). | |
| BVector< T > & | resize (const unsigned long) |
| BVector< T > & | resize (const T &, const unsigned long) |
| BVector< T > & | cheapdownsize (const unsigned long) |
| BVector< T > & | clear () |
| BVector< T > & | append (const T &) |
| performs poorly | |
| BVector< T > & | push_back (const T &value) |
| performs poorly | |
| BVector< T > & | append (const BVector< T > &) |
| BVector< T > & | remove (const unsigned long) |
| BVector< T > & | revert () |
| BVector< T > & | bubble_sort () |
| BVector< T > & | swap (BVector< T > &v) |
| T & | operator() (const unsigned long) HOT |
| tbci_traits< T >::const_refval_type | operator() (const unsigned long) const HOT |
| const T & | getcref (const unsigned long idx) const |
| tbci_traits< T >::const_refval_type | get (const unsigned long idx) const HOT |
| T & | set (const unsigned long idx) HOT |
| T & | set (const T &val, unsigned long idx) |
| T & | operator[] (const unsigned long i) |
| tbci_traits< T >::const_refval_type | operator[] (const unsigned long i) const |
| unsigned long | size () const HOT |
| T *const & | vecptr () const |
| iterator | begin () |
| iterator | end () |
| const_iterator | begin () const |
| const_iterator | end () const |
| BVector< T > & | setptr (T *pointer) |
| BVector< T > & | setsize (const unsigned long size) |
| T *const & | get_fortran_vector () const |
| void | set_fortran_vector (T *pointer) |
| BVector< T > & | operator= (const T &a) |
| BVector< T > & | operator= (const BVector< T > &) HOT |
| Note that the assignment op does NEVER resize the target BVector. | |
| BVector< T > & | alias (const BVector< T > &bv) |
| BVector< T > & | copy (const BVector< T > &bv) |
| copy does a resize, if necessary | |
| bool | operator== (const BVector< T > &) const HOT |
| 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 > &bv) const |
| bool | operator<= (const BVector< T > &bv) const |
| bool | operator>= (const BVector< T > &bv) const |
| bool | operator< (const BVector< T > &bv) const |
| bool | operator> (const BVector< T > &bv) const |
| bool | contains (const T &, unsigned long *=0) const |
| BVector< T > | concat (const BVector< T > &) const |
| template<typename U> | |
| BVector (const BVector< U > &bv) | |
| 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 () |
Protected Types | |
| typedef T | value_type |
| typedef T | element_type |
| typedef T aligned_value_type | TALIGN(MIN_ALIGN2) |
Protected Attributes | |
| T * | vec |
| unsigned long | dim |
| bool | keep |
Friends | |
| class | TMatrix< T > |
| class | F_TMatrix< T > |
| class | F_Matrix< T > |
| template<typename U> | |
| class | BVector |
| NOINST BVector< T > &FRIEND_TBCI2__ bvfillm | FGD (BVector< T > &, const Matrix< T > &m) |
| STD__ ostream & | operator<<FGD (STD__ ostream &, const BVector< T > &) |
| STD__ istream & | operator>>FGD (STD__ istream &, BVector< T > &) |
provides basic Vector functionality but arithmetic operators (+=, - , *, /...).
Mainly useful for storage.
|
protected |
|
inline |
Definition at line 308 of file bvector.h.
References BCHK, BVector, cheapdownsize(), dim, resize(), and UNLIKELY.
Referenced by cheapdownsize().
|
inline |
Definition at line 580 of file bvector.h.
References dim, i, REGISTER, T, UNLIKELY, and vec.
Referenced by Vector< T >::contains(), operator<<(), and operator>>().
copy does a resize, if necessary
Definition at line 484 of file bvector.h.
References a, BVector, and resize().
Referenced by lu_solve(), and lu_solve().
Definition at line 268 of file bvector.h.
References dim, LIKELY, T, TBCIDELETE, and vec.
Referenced by alias(), TVector< T >::operator()(), TSMatrix< T >::operator*(), ~BVector(), and Vector< T >::~Vector().
Definition at line 155 of file bvector.h.
Referenced by TVector< T >::FGD, and TVector< T >::FGD.
|
inline |
|
inline |
Definition at line 132 of file bvector.h.
Referenced by BdMatrix< T >::BdMatrix(), Symm_BdMatrix< T >::construct(), do_bdmat_vec_dotmult(), do_bdmat_vec_mult(), do_bdmat_vec_mult_diagw_exact(), do_bdmat_vec_mult_lnw(), do_bdmat_vec_mult_lnw_opt(), do_bdmat_vec_transmult(), do_bdmat_vec_transmult_diagw_exact(), do_bdmat_vec_transmult_lnw(), do_bdmat_vec_transmult_lnw_opt(), BdMatrix< T >::do_copy(), BdMatrix< T >::operator==(), BdMatrix< T >::reconfig(), BdMatrix< T >::resize(), and DILU_BdMatrixPreconditioner< T >::update().
Definition at line 164 of file bvector.h.
Referenced by eig(), eig(), eig(), eig(), eig(), eig(), eig(), eig(), inv(), inv(), inv(), lu_solve(), lu_solve(), lu_solve(), lu_solve(), lu_solve(), lu_solve(), and lu_solve_expert().
Definition at line 129 of file bvector.h.
Referenced by do_bdmat_vec_dotmult(), do_bdmat_vec_mult_lnw_opt(), and do_bdmat_vec_transmult_lnw_opt().
Definition at line 469 of file bvector.h.
References dim, EXPCHK, i, index, T, and vec.
Referenced by Vector< T >::operator()(), Vector< T >::operator()(), operator[](), and operator[]().
Definition at line 168 of file bvector.h.
References a, BVector, fill(), and T.
Referenced by TVector< T >::operator=(), and TVector< T >::operator=().
Definition at line 140 of file bvector.h.
References i, operator()(), and T.
|
inline |
Definition at line 142 of file bvector.h.
References i, and operator()().
Actually it's a resize and copy (some people would expect the assignment op to do this).
Definition at line 361 of file bvector.h.
References BVector, dim, LIKELY, NEW, T, TBCICOPY, TBCIDELETE, UNLIKELY, and vec.
Referenced by TSVector< T >::add_t_tsv(), cediv(), cediv(), cediv(), cemul(), cemul(), cemul(), cheapdownsize(), copy(), ediv(), ediv(), ediv(), eig(), eig(), eig(), emul(), emul(), emul(), TSVector< T >::operator+(), TSVector< T >::operator+(), TSVector< T >::operator+(), Vector< T >::operator+(), TSVector< T >::operator-(), TSVector< T >::operator-(), TSVector< T >::operator-(), Vector< T >::operator-(), resize(), and TSVector< T >::sub_t_tsv().
Definition at line 134 of file bvector.h.
Referenced by Symm_BdMatrix< T >::construct(), BdMatrix< T >::expand(), BdMatrix< T >::operator-(), set(), and Symm_BdMatrix< T >::setval().
Definition at line 144 of file bvector.h.
Referenced by Symm_BdMatrix< T >::construct(), Symm_BdMatrix< T >::create(), do_bdmat_vec_dotmult(), do_bdmat_vec_mult(), do_bdmat_vec_mult_diagw_exact(), do_bdmat_vec_mult_lnw(), do_bdmat_vec_mult_lnw_opt(), do_bdmat_vec_transmult(), do_bdmat_vec_transmult_diagw_exact(), do_bdmat_vec_transmult_lnw(), do_bdmat_vec_transmult_lnw_opt(), FS_Vector< dims, T >::FS_Vector(), BdMatrix< T >::operator=(), BdMatrix< T >::operator==(), BdMatrix< T >::reconfig(), BdMatrix< T >::resize(), setsize(), Symm_BdMatrix< T >::setval(), and DILU_BdMatrixPreconditioner< T >::update().
Definition at line 147 of file bvector.h.
Referenced by FS_Vector< dims, T >::FS_Vector(), and get_fortran_vector().
Definition at line 200 of file bvector.h.
References BVector.
Referenced by alias(), append(), append(), bubble_sort(), BVector, BVector(), BVector(), cheapdownsize(), clear(), concat(), copy(), F_Matrix< T >, FGD, fill(), init_0(), operator!=(), TVector< T >::operator!=(), operator<(), operator<<FGD, operator<=(), operator=(), operator=(), operator==(), TVector< T >::operator==(), Vector< T >::operator==(), operator>(), operator>=(), operator>>FGD, push_back(), remove(), resize(), resize(), resize(), revert(), setptr(), setsize(), swap(), TVector< T >::TVector(), TVector< T >::TVector(), TVector< T >::TVector(), TVector< T >::TVector(), TVector< T >::TVector(), Vector< T >::Vector(), and Vector< T >::Vector().
|
friend |
References BVector, bvfillm(), FRIEND_TBCI2__, and NOINST.
Definition at line 74 of file bvector.h.
Referenced by TSVector< T >::add_t_tsv(), alias(), append(), append(), bubble_sort(), BVector(), BVector(), BVector(), BVector(), BVector(), bvfillm(), cheapdownsize(), concat(), contains(), destroy(), end(), end(), fill(), TMatrix< T >::fill(), TVector< T >::incr(), init_0(), operator()(), operator()(), TVector< T >::operator*=(), TSVector< T >::operator+(), TSVector< T >::operator+(), TSVector< T >::operator+(), TSVector< T >::operator+(), TVector< T >::operator+(), TVector< T >::operator+(), Vector< T >::operator+(), Vector< T >::operator+(), Vector< T >::operator+(), TVector< T >::operator+=(), TVector< T >::operator+=(), TVector< T >::operator+=(), TSVector< T >::operator-(), TSVector< T >::operator-(), TSVector< T >::operator-(), TSVector< T >::operator-(), TVector< T >::operator-(), TVector< T >::operator-(), Vector< T >::operator-(), Vector< T >::operator-(), Vector< T >::operator-(), TVector< T >::operator-=(), TVector< T >::operator-=(), TVector< T >::operator-=(), operator<<(), operator<=(), operator=(), TSVector< T >::operator=(), TVector< T >::operator=(), TVector< T >::operator=(), operator==(), TSVector< T >::operator==(), operator>=(), operator>>(), remove(), resize(), resize(), resize(), revert(), F_TMatrix< T >::set_col(), TMatrix< T >::set_col(), TMatrix< T >::set_col_partial(), TMatrix< T >::set_row(), TMatrix< T >::set_row_partial(), setsize(), size(), TVector< T >::size(), TVector< T >::slice(), Vector< T >::slice(), TSVector< T >::sub_t_tsv(), swap(), TVector< T >::TVector(), and TVector< T >::TVector().
Definition at line 75 of file bvector.h.
Referenced by alias(), BVector(), BVector(), BVector(), BVector(), BVector(), F_Matrix< T >, swap(), TVector< T >::TVector(), Vector< T >::Vector(), Vector< T >::Vector(), ~BVector(), and TVector< T >::~TVector().
Definition at line 73 of file bvector.h.
Referenced by TSVector< T >::add_t_tsv(), alias(), append(), append(), begin(), begin(), bubble_sort(), BVector(), BVector(), BVector(), BVector(), BVector(), bvfillm(), concat(), contains(), destroy(), end(), end(), F_TMatrix< T >::F_TMatrix(), TVector< T >::FGD, fill(), TMatrix< T >::fill(), get(), TVector< T >::get(), F_TMatrix< T >::get_col(), TMatrix< T >::get_col(), F_TMatrix< T >::get_row(), TMatrix< T >::get_row(), getcref(), TVector< T >::getcref(), TSVector< T >::incr(), TVector< T >::incr(), Vector< T >::incr(), init_0(), operator()(), operator()(), Matrix< T >::operator()(), TVector< T >::operator()(), BdMatrix< T >::operator*(), Matrix< T >::operator*(), TVector< T >::operator*=(), TSVector< T >::operator+(), TSVector< T >::operator+(), TSVector< T >::operator+(), TSVector< T >::operator+(), TVector< T >::operator+(), TVector< T >::operator+(), Vector< T >::operator+(), Vector< T >::operator+(), Vector< T >::operator+(), Vector< T >::operator+(), TVector< T >::operator+=(), TVector< T >::operator+=(), TVector< T >::operator+=(), TSVector< T >::operator-(), TSVector< T >::operator-(), TSVector< T >::operator-(), TSVector< T >::operator-(), TVector< T >::operator-(), TVector< T >::operator-(), Vector< T >::operator-(), Vector< T >::operator-(), Vector< T >::operator-(), Vector< T >::operator-(), Vector< T >::operator-(), TVector< T >::operator-=(), TVector< T >::operator-=(), TVector< T >::operator-=(), operator<<(), operator<=(), operator=(), TSVector< T >::operator=(), TVector< T >::operator=(), TVector< T >::operator=(), operator==(), TSVector< T >::operator==(), TVector< T >::operator==(), operator>=(), operator>>(), remove(), resize(), resize(), resize(), revert(), set(), TVector< T >::set(), F_TMatrix< T >::set_col(), TMatrix< T >::set_col(), TMatrix< T >::set_col_partial(), F_TMatrix< T >::set_row(), TMatrix< T >::set_row(), TMatrix< T >::set_row_partial(), setptr(), TVector< T >::setval(), TVector< T >::setval(), TVector< T >::slice(), Vector< T >::slice(), TSVector< T >::sub_t_tsv(), swap(), TMatrix< T >::TMatrix(), BdMatrix< T >::transMult(), TVector< T >::TVector(), TVector< T >::TVector(), and vecptr().