Belle II Software  release-08-01-10
VVector Class Reference

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

#include <VMatrix.h>

Collaboration diagram for VVector:

Public Member Functions

 VVector (const unsigned int nRows=0)
 
 VVector (const VVector &aVector)
 
void resize (const unsigned int nRows)
 Resize vector. More...
 
VVector getVec (unsigned int len, unsigned int start=0) const
 Get part of vector. More...
 
void putVec (const VVector &aVector, unsigned int start=0)
 Put part of vector. More...
 
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. More...
 
void print () const
 Print vector.
 
VVector operator- (const VVector &aVector) const
 Subtraction Vector-Vector.
 
VVectoroperator= (const VVector &aVector)
 Assignment 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 43 of file VMatrix.h.

Member Function Documentation

◆ getNumRows()

unsigned int getNumRows ( ) const

Get number of rows.

Returns
Number of rows.

Definition at line 293 of file VMatrix.cc.

293  {
294  return numRows;
295 }
unsigned int numRows
Number of rows.
Definition: VMatrix.h:58

◆ getVec()

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 273 of file VMatrix.cc.

◆ putVec()

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

Put part of vector.

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

Definition at line 284 of file VMatrix.cc.

◆ resize()

void resize ( const unsigned int  nRows)

Resize vector.

Parameters
[in]nRowsNumber of rows.

Definition at line 262 of file VMatrix.cc.


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