Inherited by DenseVector< T >.
Inheritance diagram for Vector< T >:
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. |
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).