Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members

Vector< T > Class Template Reference
[Linear Algebra library]

The abstract base class for vectors; provides size and element access. More...

#include <linalg_abstract.h>

Inherited by DenseVector< T >.

Inheritance diagram for Vector< T >:

Inheritance graph
[legend]
List of all members.

Public Member Functions

virtual itype Size () const =0
 The number of elements in the Vector.
virtual T & operator() (itype i)=0
 Returns a (non-const) reference to an element.
virtual T operator() (itype i) const =0
 Returns the value of an element (needed for const objects).
virtual void print (std::ostream &os=std::cout) const
 Prettyprints the Vector to a stream.

Detailed Description

template<typename T>
class Vector< T >

The abstract base class for vectors; provides size and element access.

Vector<T> is the absolute bare bones interface to a linear algebraic vector. It provides an interface to the object size, an interface to obtain constant elements (no guarantee of writability), and a stream output function. Concrete classes may be derived from Vector<T>, or from derived classes. Intermediate classes should probably be avoided except for good reasons. Methods for obtaining subvectors are currently commented out because G++ 3.3 did not implement covariant return types (5/20/04).


The documentation for this class was generated from the following file:
Generated on Wed Jun 14 22:25:29 2006 for linalg by  doxygen 1.4.4