#include <vector.h>
Inheritance diagram for Vector< P_numtype >:
Public Types | |
typedef P_numtype | T_numtype |
typedef Vector< T_numtype > | T_vector |
typedef VectorIter< T_numtype > | T_iterator |
typedef VectorIterConst< T_numtype > | T_constIterator |
typedef VectorPick< T_numtype > | T_pick |
typedef Vector< int > | T_indexVector |
Public Member Functions | |
Vector () | |
Vector (const Vector< T_numtype > &vec) | |
Vector (int length) | |
Vector (const Vector< T_numtype > &vec, Range r) | |
Vector (int length, T_numtype initValue) | |
Vector (int length, T_numtype firstValue, T_numtype delta) | |
template<typename P_distribution> | |
Vector (int length, Random< P_distribution > &random) | |
template<typename P_expr> | |
Vector (_bz_VecExpr< P_expr > expr) | |
Vector (int length, T_numtype *restrict data, int stride=1) | |
Vector (Range r) | |
void | assertUnitStride () |
T_iterator | beginFast () |
T_constIterator | beginFast () const |
T_vector | copy () const |
T_numtype *restrict | data () |
const T_numtype *restrict | data () const |
bool | isUnitStride () const |
int | length () const |
void | makeUnique () |
void | reference (T_vector &) |
void | resize (int length) |
void | resizeAndPreserve (int newLength) |
T_vector | reverse () |
int | stride () const |
operator _bz_VecExpr () const | |
int | _bz_suggestLength () const |
bool | _bz_hasFastAccess () const |
T_numtype & | _bz_fastAccess (int i) |
T_numtype | _bz_fastAccess (int i) const |
template<typename P_expr, typename P_updater> | |
void | _bz_assign (P_expr, P_updater) |
_bz_VecExpr< T_constIterator > | _bz_asVecExpr () const |
T_numtype | operator() (int i) const |
T_numtype &restrict | operator() (int i) |
T_numtype | operator[] (int i) const |
T_numtype &restrict | operator[] (int i) |
T_vector | operator() (Range r) |
T_vector | operator[] (Range r) |
T_pick | operator() (T_indexVector i) |
T_pick | operator[] (T_indexVector i) |
ListInitializationSwitch< T_vector, T_iterator > | operator= (T_numtype x) |
T_iterator | getInitializationIterator () |
T_vector & | initialize (T_numtype) |
T_vector & | operator+= (T_numtype) |
T_vector & | operator-= (T_numtype) |
T_vector & | operator *= (T_numtype) |
T_vector & | operator/= (T_numtype) |
T_vector & | operator%= (T_numtype) |
T_vector & | operator^= (T_numtype) |
T_vector & | operator &= (T_numtype) |
T_vector & | operator|= (T_numtype) |
T_vector & | operator>>= (int) |
T_vector & | operator<<= (int) |
template<typename P_numtype2> | |
T_vector & | operator= (const Vector< P_numtype2 > &) |
template<typename P_numtype2> | |
T_vector & | operator+= (const Vector< P_numtype2 > &) |
template<typename P_numtype2> | |
T_vector & | operator-= (const Vector< P_numtype2 > &) |
template<typename P_numtype2> | |
T_vector & | operator *= (const Vector< P_numtype2 > &) |
template<typename P_numtype2> | |
T_vector & | operator/= (const Vector< P_numtype2 > &) |
template<typename P_numtype2> | |
T_vector & | operator%= (const Vector< P_numtype2 > &) |
template<typename P_numtype2> | |
T_vector & | operator^= (const Vector< P_numtype2 > &) |
template<typename P_numtype2> | |
T_vector & | operator &= (const Vector< P_numtype2 > &) |
template<typename P_numtype2> | |
T_vector & | operator|= (const Vector< P_numtype2 > &) |
template<typename P_numtype2> | |
T_vector & | operator>>= (const Vector< P_numtype2 > &) |
template<typename P_numtype2> | |
T_vector & | operator<<= (const Vector< P_numtype2 > &) |
template<typename P_expr> | |
T_vector & | operator= (_bz_VecExpr< P_expr >) |
template<typename P_expr> | |
T_vector & | operator+= (_bz_VecExpr< P_expr >) |
template<typename P_expr> | |
T_vector & | operator-= (_bz_VecExpr< P_expr >) |
template<typename P_expr> | |
T_vector & | operator *= (_bz_VecExpr< P_expr >) |
template<typename P_expr> | |
T_vector & | operator/= (_bz_VecExpr< P_expr >) |
template<typename P_expr> | |
T_vector & | operator%= (_bz_VecExpr< P_expr >) |
template<typename P_expr> | |
T_vector & | operator^= (_bz_VecExpr< P_expr >) |
template<typename P_expr> | |
T_vector & | operator &= (_bz_VecExpr< P_expr >) |
template<typename P_expr> | |
T_vector & | operator|= (_bz_VecExpr< P_expr >) |
template<typename P_expr> | |
T_vector & | operator>>= (_bz_VecExpr< P_expr >) |
template<typename P_expr> | |
T_vector & | operator<<= (_bz_VecExpr< P_expr >) |
template<typename P_numtype2> | |
T_vector & | operator= (const VectorPick< P_numtype2 > &) |
template<typename P_numtype2> | |
T_vector & | operator+= (const VectorPick< P_numtype2 > &) |
template<typename P_numtype2> | |
T_vector & | operator-= (const VectorPick< P_numtype2 > &) |
template<typename P_numtype2> | |
T_vector & | operator *= (const VectorPick< P_numtype2 > &) |
template<typename P_numtype2> | |
T_vector & | operator/= (const VectorPick< P_numtype2 > &) |
template<typename P_numtype2> | |
T_vector & | operator%= (const VectorPick< P_numtype2 > &) |
template<typename P_numtype2> | |
T_vector & | operator^= (const VectorPick< P_numtype2 > &) |
template<typename P_numtype2> | |
T_vector & | operator &= (const VectorPick< P_numtype2 > &) |
template<typename P_numtype2> | |
T_vector & | operator|= (const VectorPick< P_numtype2 > &) |
template<typename P_numtype2> | |
T_vector & | operator>>= (const VectorPick< P_numtype2 > &) |
template<typename P_numtype2> | |
T_vector & | operator<<= (const VectorPick< P_numtype2 > &) |
T_vector & | operator= (Range) |
T_vector & | operator+= (Range) |
T_vector & | operator-= (Range) |
T_vector & | operator *= (Range) |
T_vector & | operator/= (Range) |
T_vector & | operator%= (Range) |
T_vector & | operator^= (Range) |
T_vector & | operator &= (Range) |
T_vector & | operator|= (Range) |
T_vector & | operator>>= (Range) |
T_vector & | operator<<= (Range) |
template<typename P_distribution> | |
T_vector & | operator= (Random< P_distribution > &random) |
template<typename P_distribution> | |
T_vector & | operator+= (Random< P_distribution > &random) |
template<typename P_distribution> | |
T_vector & | operator-= (Random< P_distribution > &random) |
template<typename P_distribution> | |
T_vector & | operator *= (Random< P_distribution > &random) |
template<typename P_distribution> | |
T_vector & | operator/= (Random< P_distribution > &random) |
template<typename P_distribution> | |
T_vector & | operator%= (Random< P_distribution > &random) |
template<typename P_distribution> | |
T_vector & | operator^= (Random< P_distribution > &random) |
template<typename P_distribution> | |
T_vector & | operator &= (Random< P_distribution > &random) |
template<typename P_distribution> | |
T_vector & | operator|= (Random< P_distribution > &random) |
Private Types | |
typedef MemoryBlockReference< P_numtype > | T_base |
Private Attributes | |
int | length_ |
int | stride_ |
typedef MemoryBlockReference<P_numtype> Vector< P_numtype >::T_base [private] |
typedef VectorIter<T_numtype> Vector< P_numtype >::T_iterator |
typedef VectorIterConst<T_numtype> Vector< P_numtype >::T_constIterator |
typedef VectorPick<T_numtype> Vector< P_numtype >::T_pick |
typedef Vector<int> Vector< P_numtype >::T_indexVector |
Vector< P_numtype >::Vector | ( | const Vector< T_numtype > & | vec | ) | [inline] |
Vector< P_numtype >::Vector | ( | const Vector< T_numtype > & | vec, | |
Range | r | |||
) | [inline] |
Vector< P_numtype >::Vector | ( | int | length, | |
T_numtype | initValue | |||
) | [inline] |
Vector< P_numtype >::Vector | ( | int | length, | |
T_numtype | firstValue, | |||
T_numtype | delta | |||
) | [inline] |
Vector< P_numtype >::Vector | ( | int | length, | |
Random< P_distribution > & | random | |||
) | [inline] |
Vector< P_numtype >::Vector | ( | _bz_VecExpr< P_expr > | expr | ) | [inline] |
Vector< P_numtype >::Vector | ( | int | length, | |
T_numtype *restrict | data, | |||
int | stride = 1 | |||
) | [inline] |
void Vector< P_numtype >::assertUnitStride | ( | ) | [inline] |
T_iterator Vector< P_numtype >::beginFast | ( | ) | [inline] |
T_constIterator Vector< P_numtype >::beginFast | ( | ) | const [inline] |
bool Vector< P_numtype >::isUnitStride | ( | ) | const [inline] |
int Vector< P_numtype >::length | ( | ) | const [inline] |
void Vector< P_numtype >::makeUnique | ( | ) |
void Vector< P_numtype >::resize | ( | int | length | ) |
void Vector< P_numtype >::resizeAndPreserve | ( | int | newLength | ) |
int Vector< P_numtype >::stride | ( | ) | const [inline] |
Vector< P_numtype >::operator _bz_VecExpr | ( | ) | const [inline] |
int Vector< P_numtype >::_bz_suggestLength | ( | ) | const [inline] |
bool Vector< P_numtype >::_bz_hasFastAccess | ( | ) | const [inline] |
void Vector< P_numtype >::_bz_assign | ( | P_expr | , | |
P_updater | ||||
) |
_bz_VecExpr<T_constIterator> Vector< P_numtype >::_bz_asVecExpr | ( | ) | const [inline] |
T_pick Vector< P_numtype >::operator() | ( | T_indexVector< P_numtype > | i | ) | [inline] |
T_pick Vector< P_numtype >::operator[] | ( | T_indexVector< P_numtype > | i | ) | [inline] |
ListInitializationSwitch<T_vector,T_iterator> Vector< P_numtype >::operator= | ( | T_numtype | x | ) | [inline] |
T_iterator Vector< P_numtype >::getInitializationIterator | ( | ) | [inline] |
T_vector& Vector< P_numtype >::operator= | ( | const Vector< P_numtype2 > & | ) |
T_vector& Vector< P_numtype >::operator+= | ( | const Vector< P_numtype2 > & | ) |
T_vector& Vector< P_numtype >::operator-= | ( | const Vector< P_numtype2 > & | ) |
T_vector& Vector< P_numtype >::operator *= | ( | const Vector< P_numtype2 > & | ) |
T_vector& Vector< P_numtype >::operator/= | ( | const Vector< P_numtype2 > & | ) |
T_vector& Vector< P_numtype >::operator%= | ( | const Vector< P_numtype2 > & | ) |
T_vector& Vector< P_numtype >::operator^= | ( | const Vector< P_numtype2 > & | ) |
T_vector& Vector< P_numtype >::operator &= | ( | const Vector< P_numtype2 > & | ) |
T_vector& Vector< P_numtype >::operator|= | ( | const Vector< P_numtype2 > & | ) |
T_vector& Vector< P_numtype >::operator>>= | ( | const Vector< P_numtype2 > & | ) |
T_vector& Vector< P_numtype >::operator<<= | ( | const Vector< P_numtype2 > & | ) |
T_vector& Vector< P_numtype >::operator= | ( | _bz_VecExpr< P_expr > | ) |
T_vector& Vector< P_numtype >::operator+= | ( | _bz_VecExpr< P_expr > | ) |
T_vector& Vector< P_numtype >::operator-= | ( | _bz_VecExpr< P_expr > | ) |
T_vector& Vector< P_numtype >::operator *= | ( | _bz_VecExpr< P_expr > | ) |
T_vector& Vector< P_numtype >::operator/= | ( | _bz_VecExpr< P_expr > | ) |
T_vector& Vector< P_numtype >::operator%= | ( | _bz_VecExpr< P_expr > | ) |
T_vector& Vector< P_numtype >::operator^= | ( | _bz_VecExpr< P_expr > | ) |
T_vector& Vector< P_numtype >::operator &= | ( | _bz_VecExpr< P_expr > | ) |
T_vector& Vector< P_numtype >::operator|= | ( | _bz_VecExpr< P_expr > | ) |
T_vector& Vector< P_numtype >::operator>>= | ( | _bz_VecExpr< P_expr > | ) |
T_vector& Vector< P_numtype >::operator<<= | ( | _bz_VecExpr< P_expr > | ) |
T_vector& Vector< P_numtype >::operator= | ( | const VectorPick< P_numtype2 > & | ) |
T_vector& Vector< P_numtype >::operator+= | ( | const VectorPick< P_numtype2 > & | ) |
T_vector& Vector< P_numtype >::operator-= | ( | const VectorPick< P_numtype2 > & | ) |
T_vector& Vector< P_numtype >::operator *= | ( | const VectorPick< P_numtype2 > & | ) |
T_vector& Vector< P_numtype >::operator/= | ( | const VectorPick< P_numtype2 > & | ) |
T_vector& Vector< P_numtype >::operator%= | ( | const VectorPick< P_numtype2 > & | ) |
T_vector& Vector< P_numtype >::operator^= | ( | const VectorPick< P_numtype2 > & | ) |
T_vector& Vector< P_numtype >::operator &= | ( | const VectorPick< P_numtype2 > & | ) |
T_vector& Vector< P_numtype >::operator|= | ( | const VectorPick< P_numtype2 > & | ) |
T_vector& Vector< P_numtype >::operator>>= | ( | const VectorPick< P_numtype2 > & | ) |
T_vector& Vector< P_numtype >::operator<<= | ( | const VectorPick< P_numtype2 > & | ) |
T_vector& Vector< P_numtype >::operator= | ( | Random< P_distribution > & | random | ) |
T_vector& Vector< P_numtype >::operator+= | ( | Random< P_distribution > & | random | ) |
T_vector& Vector< P_numtype >::operator-= | ( | Random< P_distribution > & | random | ) |
T_vector& Vector< P_numtype >::operator *= | ( | Random< P_distribution > & | random | ) |
T_vector& Vector< P_numtype >::operator/= | ( | Random< P_distribution > & | random | ) |
T_vector& Vector< P_numtype >::operator%= | ( | Random< P_distribution > & | random | ) |
T_vector& Vector< P_numtype >::operator^= | ( | Random< P_distribution > & | random | ) |
T_vector& Vector< P_numtype >::operator &= | ( | Random< P_distribution > & | random | ) |
T_vector& Vector< P_numtype >::operator|= | ( | Random< P_distribution > & | random | ) |