Simple Vector based on std::vector<double> More...
#include <VMatrix.h>
Public Member Functions | |
unsigned int | getNumRows () const |
Get number of rows. More... | |
VVector | getVec (unsigned int len, unsigned int start=0) const |
Get part of vector. More... | |
double & | operator() (unsigned int i) |
access element (i) More... | |
double | operator() (unsigned int i) const |
access element (i) More... | |
VVector | operator- (const VVector &aVector) const |
Subtraction Vector-Vector. More... | |
VVector & | operator= (const VVector &aVector) |
Assignment Vector=Vector. More... | |
void | print () const |
Print vector. More... | |
void | putVec (const VVector &aVector, unsigned int start=0) |
Put part of vector. More... | |
void | resize (const unsigned int nRows) |
Resize vector. More... | |
VVector (const unsigned int nRows=0) | |
VVector (const VVector &aVector) | |
virtual | ~VVector () |
Private Attributes | |
unsigned int | numRows |
Number of rows. More... | |
std::vector< double > | theVec |
Data. More... | |
gbl::VVector::VVector | ( | const unsigned int | nRows = 0 | ) |
Definition at line 224 of file VMatrix.cc.
gbl::VVector::VVector | ( | const VVector & | aVector | ) |
Definition at line 228 of file VMatrix.cc.
|
virtual |
Definition at line 233 of file VMatrix.cc.
unsigned int gbl::VVector::getNumRows | ( | ) | const |
VVector gbl::VVector::getVec | ( | unsigned int | len, |
unsigned int | start = 0 |
||
) | const |
Get part of vector.
[in] | len | Length of part. |
[in] | start | Offset of part. |
Definition at line 251 of file VMatrix.cc.
|
inline |
|
inline |
Subtraction Vector-Vector.
Definition at line 290 of file VMatrix.cc.
Assignment Vector=Vector.
Definition at line 299 of file VMatrix.cc.
void gbl::VVector::print | ( | void | ) | const |
Print vector.
Definition at line 276 of file VMatrix.cc.
void gbl::VVector::putVec | ( | const VVector & | aVector, |
unsigned int | start = 0 |
||
) |
Put part of vector.
[in] | aVector | Vector with part. |
[in] | start | Offset of part. |
Definition at line 262 of file VMatrix.cc.
void gbl::VVector::resize | ( | const unsigned int | nRows | ) |
Resize vector.
[in] | nRows | Number of rows. |
Definition at line 240 of file VMatrix.cc.
Referenced by Vispa.Gui.TextDialog.TextDialog::__init__().
|
private |