|
User Documentation |
|
Centre for Vision, Speech & Signal Processing |
Parent Classes:
Methods:
- VectorTC()
-
Default constructor.
- VectorTC(IntT n)
-
Constructor.
- VectorTC(const SArray1dC<DataT> & arr)
-
Construct from an array.
- VectorTC<DataT> operator+(const VectorTC<DataT> & b) const
-
Returns the sum of two vectors.
- VectorTC<DataT> operator-(const VectorTC<DataT> & b) const
-
Returns the diference between this vector and the vector 'b'.
- VectorTC<DataT> operator*(const DataT alfa) const
-
Returns the multiplication of this vector by the scalar 'alpha'.
- VectorTC<DataT> operator*(const VectorTC<DataT> & b) const
-
Returns the vector whose elements are the results of multiplication of this vector by the vector 'b' element by element.
- VectorTC<DataT> & operator+=(const VectorTC<DataT> & b)
-
add the vector 'b' to the vector
- VectorTC<DataT> & operator+=(const DataT alpha)
-
add the scalar to each element of the vector
- VectorTC<DataT> & operator-=(const VectorTC<DataT> & b)
-
subtract the vector 'b' from the vector
- VectorTC<DataT> & operator-=(const DataT alpha)
-
subtract the scalar from each element of the vector
- VectorTC<DataT> & operator*=(const DataT alpha)
-
multiply the vector by the scalar 'alpha'
- VectorTC<DataT> & operator/=(const DataT alpha)
-
divide the vector by the scalar 'alpha'
- VectorTC<DataT> & operator/=(const VectorTC<DataT> & vec)
-
(*this)[index] = (*this)[index]/vec[index]
- DataT Sum() const
-
Returns the sum all elements of the vector.
- DataT Product() const
-
Returns the product of all elements of the vector.
- VectorTC<DataT> & Reciprocal()
-
All elements of the vector are changed to their reciprocal values. It is assumed that all elements of the vector differs from zero.
- DataT TMul(const VectorTC<DataT> & b) const
-
multiplication 'DataT' = (*this).T() * b
- DataT Dot(const VectorTC<DataT> & v) const
-
scalar product of vectors
- SArray1dC<DataT> Copy() const
-
Creates a new physical copy of the array.
- const SArray1dC<DataT> & operator=(const SArray1dC<DataT> & vv)
-
Assigment, as for a BIG_OBJECT.
Access to the object and its parts.
-----------------------------------
- const SArray1dC<DataT> & SArray1d() const
-
Access to the whole constant array.
- SArray1dC<DataT> & SArray1d()
-
Access to the whole array.
Modifications of the representation
-----------------------------------
- SArray1dC<DataT> Enlarge(const IntT factor = 2) const
-
Enlarges the array by item duplications. Every item is duplicated
'factor' times. The return array is extended by adding of higher
indexes.
- SArray1dC<DataT> & Append(const SArray1dC<DataT> & a)
-
This array is extended by the length of the array 'a' and the contents
of both arrays are copied to it. The function supports empty arrays.
- SArray1dC<DataT> Join(const SArray1dC<DataT> & Oth) const
-
Join this Array and another into a new Array which
is returned. This does not change either of its arguments.
This is placed in the array first, followed by 'Oth'.
Special operations
------------------
- void DebugAddresses() const
-
Prints addresses into 'cerrAMMA'.
- const BodyRefCounterC & RefCounter() const
-
Returns access to reference counter.
- BufferRC<DataT> & Buffer()
-
Access base data buffer.
Experts only.
- const BufferRC<DataT> & Buffer() const
-
Constant access base data buffer.
Experts only.
- const SizeBufferAccessC<DataT> & operator=(DataT * bp)
-
Changes the reference element to the element pointed by 'bp'.
Access to the object
--------------------
- DataT * ReferenceElm(void) const
-
Returns the pointer to the reference element of the attached buffer.
The reference element need not to be the valid element of the buffer.
- void * ReferenceVoid(void) const
-
Returns the pointer to the reference element of the attached buffer.
The reference element need not to be the valid element of the buffer.
The function is intended to be used in printing.
- const BufferAccessC<DataT> & Access(void) const
-
Returns this object.
- DataT * DataStart() const
-
Returns the address of the first element of the buffer.
- SizeT N() const
-
Returns the number of elements of the array.
- SizeT Size() const
-
Returns the number of elements of the array.
- const BufferSizeC & Limits() const
-
Returns the usable range of indeces expressed by this object.
- const BufferSizeC & Range() const
-
Returns the usable range of indeces expressed by this object.
- IndexT IMin() const
-
Returns the minimum index of the range of this access.
- IndexT IMax() const
-
Returns the maximum index of the range of this access.
- const DataT & operator[](const IndexT i) const
-
Read-only access to the ('i'+1)-th element of the buffer.
- DataT & operator[](const IndexT i)
-
Read-write access to the ('i'+1)-th element of the buffer.
- const SizeBufferAccessC<DataT> & SAccess(void) const
-
Returns this object.
Logical functions
-----------------
- BooleanT IsEmpty() const
-
Returns TRUE if the size of the array is zero.
- BooleanT Contains(const IndexT i) const
-
Returns TRUE if the array contains an item with the index 'i'.
Modifications of the access
---------------------------
- const BufferSizeC & ShrinkHigh(const SizeT k)
-
Changes the number of elements by subtracting the last 'k' elements.
- const SizeBufferAccessC<DataT> & Swap(SizeBufferAccessC<DataT> & a)
-
Exchanges the contents of this buffer with buffer 'a'.
- void Attach(const SizeBufferAccessC<DataT> & b)
-
Changes this buffer access to have the same access rights as 'b'.
- void Attach(const BufferAccessC<DataT> & b,const SizeT size)
-
Changes this buffer access to have the access rights as 'b' limited
for 'size' elements.
- SizeBufferAccessC<DataT> operator+(const SizeT i) const
-
Creates the new access object shifted 'i' elements to the right
(towards next elements). The size is descreased to fit the
the original range of this access.
Modifications of the buffer contents
------------------------------------
- void Fill(const DataT & d)
-
'd' value is assigned to all elements of the buffer.
- void CopyFrom(const SizeBufferAccessC<DataT> & oth)
-
Copy contents of another buffer into this one.
NB. Buffers MUST be the same length.
|
Programmer:Charles Galambos, Documentation by CxxDoc: Tue Mar 20 10:48:08 2001
|