#include <PrVec.h>
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_ |
Definition at line 44 of file PrVec.h.
| PrVec::PrVec | ( | int | n, | |
| double | fill_with = 0.0 | |||
| ) | [inline] |
1.5.1