PrVec Class Reference

PrVec - This class represents a vector. More...

#include <PrVec.h>

List of all members.

Public Member Functions

 PrVec ()
 Default constructor.
 PrVec (int n, double fill_with=0.0)
 Constructor.
template<typename InputIterator>
 PrVec (InputIterator begin, InputIterator end)
 Constructor generating av vector from a range of elements specified with two iterators.
void redim (int n, double fill_with=0.0)
 Change size of vector.
int size () const
 Query size of vector.
double & operator() (int i)
 Element access.
const double & operator() (int i) const
 Element access.
double & operator[] (int i)
 Element access.
const double & operator[] (int i) const
 Element access.
double inner (const PrVec &x)
 Compute inner product with another vector of the same length.
void read (std::istream &is)
 Read vector elements from stream 'is'.
void print (std::ostream &os)
 Write vector elements, separated with spaces, to stream 'os'.

Protected Attributes

std::vector< double > a_


Detailed Description

PrVec - This class represents a vector.

Definition at line 44 of file PrVec.h.


Constructor & Destructor Documentation

PrVec::PrVec ( int  n,
double  fill_with = 0.0 
) [inline]

Constructor.

Constructs a vector with n elements initialized by fill_with.

Definition at line 56 of file PrVec.h.


The documentation for this class was generated from the following files:
Generated on Tue Jun 12 11:05:06 2007 for GoTools Parametrization Library by  doxygen 1.5.1