Type:
Template vector class with parameters T - vector element type eg. int R - return type for norms etc. |
Vector | (unsigned int n = 0) ; |
Construct given vector length |
Vector | (unsigned int n, T element) ; |
Construct given vector length and element initialiser |
Vector | (const VectorSize& vs) ; |
Construct given vector size |
Vector | (const VectorSize& vs, T element) ; |
Construct given vector size and element initialiser |
Vector | (const Vector<unsigned short, real>& ip) ; |
Cloning copy constructor/type conversions (other types here as well) |
Vector | (const Vector<float, float>& ip) ; |
template <class P, class Q> Vector | (const Vector<P, Q>& ip) ; |
Vector<T, R>& operator= | (const Subvector<T, R>& subvector) ; |
Cloning assignment operator Assign vector from subvector. Note that memory is re-allocated if subvector size does not match existing vector size |
Vector | (VectorRef<T, R>& r) ; |
Reference passing copy constructor |
Vector<T, R>& operator= | (VectorRef<T, R>& r) ; |
Reference passing assignment operator |
Vector | (const Subvector<T, R>& subvector) ; |
Construct vector from subimage Construct vector from subvector |
Vector | (const Subvector<T, R>& subvector) ; |
Construct vector from subimage Construct vector from subvector |
Vector<T, R>& operator= | (const Subvector<T, R>& subvector) ; |
Cloning assignment operator Assign vector from subvector. Note that memory is re-allocated if subvector size does not match existing vector size |
Subvector<T, R> operator() | (unsigned int x, unsigned int w) const ; |
Extract subvector from vector |
void reset | (const VectorSize& vs) ; |
Destroy vector and reallocate vector of requested size |
unsigned int vlength | () const ; |
Return vector length |
T& operator() | (unsigned int n) const ; |
Return reference to element n of vector |
T& modindex | (int n) const ; |
a b c --> a b c a b c |
T& oddsymindex | (int n) const ; |
a b c --> a b c b |
T& evensymindex | (int n) const ; |
a b c --> a b c c b a |
Vector<T, R>& operator+= | (const Vector<T, R>& u) ; |
Compound assignments |
Vector<T, R>& operator+= | (T k) ; |
Vector<T, R>& operator-= | (const Vector<T, R>& u) ; |
Vector<T, R>& operator-= | (T k) ; |
Vector<T, R>& operator*= | (R k) ; |
Vector<T, R>& operator/= | (R k) ; |
Vector<T, R>& subsample | (const Vector<T, R>& u, unsigned int k = 2) ; |
Subsample vector u and place result in *this. Argument k is subsampling ratio |
friend VectorRef<T, R> concatenate | (const Vector<T, R>& u, const Vector<T, R>& v) ; |
Concatenate two vectors, place result in *this |
R integral | (unsigned int first, unsigned int last) ; |
Integrate vector between bounds |
R integral | () ; |
Integrate entire vector |
bool native_write | (char* filename) const ; |
Write file in native format |
bool native_read | (char* filename) ; |
Read file in native format |
bool save | (const VectorFileInterface<T, R>& vfi) const ; |
Stream output |