GeneralBrokenLines  trunk_rev46
 All Classes Files Functions Variables Typedefs Pages
Public Member Functions | Private Attributes
VVector Class Reference

Simple Vector based on std::vector<double> More...

#include <VMatrix.h>

List of all members.

Public Member Functions

 VVector (const unsigned int nRows=0)
 VVector (const VVector &aVector)
virtual ~VVector ()
void resize (const unsigned int nRows)
 Resize vector.
VVector getVec (unsigned int len, unsigned int start=0) const
 Get part of vector.
void putVec (const VVector &aVector, unsigned int start=0)
 Put part of vector.
double & operator() (unsigned int i)
 access element (i)
double operator() (unsigned int i) const
 access element (i)
unsigned int getNumRows () const
 Get number of rows.
void print () const
 Print vector.
VVector operator- (const VVector &aVector) const
 Subtraction Vector-Vector.

Private Attributes

unsigned int numRows
 Number of rows.
std::vector< double > theVec
 Data.

Detailed Description

Simple Vector based on std::vector<double>

Definition at line 18 of file VMatrix.h.


Constructor & Destructor Documentation

VVector::VVector ( const unsigned int  nRows = 0)

Definition at line 206 of file VMatrix.cpp.

VVector::VVector ( const VVector aVector)

Definition at line 210 of file VMatrix.cpp.

VVector::~VVector ( )
virtual

Definition at line 215 of file VMatrix.cpp.


Member Function Documentation

unsigned int VVector::getNumRows ( ) const

Get number of rows.

Returns:
Number of rows.

Definition at line 253 of file VMatrix.cpp.

References numRows.

VVector VVector::getVec ( unsigned int  len,
unsigned int  start = 0 
) const

Get part of vector.

Parameters:
[in]lenLength of part.
[in]startOffset of part.
Returns:
Part of vector.

Definition at line 233 of file VMatrix.cpp.

References theVec.

Referenced by BorderedBandMatrix::solveAndInvertBorderedBand().

double & VVector::operator() ( unsigned int  i)
inline

access element (i)

Definition at line 88 of file VMatrix.h.

References theVec.

double VVector::operator() ( unsigned int  i) const
inline

access element (i)

Definition at line 93 of file VMatrix.h.

References theVec.

VVector VVector::operator- ( const VVector aVector) const

Subtraction Vector-Vector.

Definition at line 272 of file VMatrix.cpp.

References numRows, and theVec.

void VVector::print ( ) const

Print vector.

Definition at line 258 of file VMatrix.cpp.

References numRows, and theVec.

void VVector::putVec ( const VVector aVector,
unsigned int  start = 0 
)

Put part of vector.

Parameters:
[in]aVectorVector with part.
[in]startOffset of part.

Definition at line 244 of file VMatrix.cpp.

References numRows, and theVec.

Referenced by BorderedBandMatrix::solveAndInvertBorderedBand().

void VVector::resize ( const unsigned int  nRows)

Resize vector.

Parameters:
[in]nRowsNumber of rows.

Definition at line 222 of file VMatrix.cpp.

References numRows, and theVec.

Referenced by GblTrajectory::buildLinearEquationSystem().


Member Data Documentation

unsigned int VVector::numRows
private

Number of rows.

Definition at line 32 of file VMatrix.h.

Referenced by getNumRows(), operator-(), print(), putVec(), and resize().

std::vector<double> VVector::theVec
private

Data.

Definition at line 33 of file VMatrix.h.

Referenced by getVec(), operator()(), operator-(), print(), putVec(), and resize().


The documentation for this class was generated from the following files: