Analysis Software
Documentation for sPHENIX simulation software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
gbl::VVector Class Reference

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

#include <GenFit/blob/master/GBL/include/VMatrix.h>

+ Collaboration diagram for gbl::VVector:

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.
 
doubleoperator() (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.
 
VVectoroperator= (const VVector &aVector)
 Assignment Vector=Vector.
 

Private Attributes

unsigned int numRows
 Number of rows.
 
std::vector< doubletheVec
 Data.
 

Detailed Description

Simple Vector based on std::vector<double>

Definition at line 43 of file VMatrix.h.

View newest version in sPHENIX GitHub at line 43 of file VMatrix.h

Constructor & Destructor Documentation

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

Definition at line 246 of file VMatrix.cc.

View newest version in sPHENIX GitHub at line 246 of file VMatrix.cc

gbl::VVector::VVector ( const VVector aVector)

Definition at line 250 of file VMatrix.cc.

View newest version in sPHENIX GitHub at line 250 of file VMatrix.cc

gbl::VVector::~VVector ( )
virtual

Definition at line 255 of file VMatrix.cc.

View newest version in sPHENIX GitHub at line 255 of file VMatrix.cc

Member Function Documentation

unsigned int gbl::VVector::getNumRows ( ) const

Get number of rows.

Returns
Number of rows.

Definition at line 293 of file VMatrix.cc.

View newest version in sPHENIX GitHub at line 293 of file VMatrix.cc

References numRows.

Referenced by operator=().

+ Here is the caller graph for this function:

VVector gbl::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.

View newest version in sPHENIX GitHub at line 273 of file VMatrix.cc

References theVec.

Referenced by gbl::BorderedBandMatrix::solveAndInvertBorderedBand().

+ Here is the caller graph for this function:

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

access element (i)

Definition at line 115 of file VMatrix.h.

View newest version in sPHENIX GitHub at line 115 of file VMatrix.h

References theVec.

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

access element (i)

Definition at line 120 of file VMatrix.h.

View newest version in sPHENIX GitHub at line 120 of file VMatrix.h

References theVec.

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

Subtraction Vector-Vector.

Definition at line 312 of file VMatrix.cc.

View newest version in sPHENIX GitHub at line 312 of file VMatrix.cc

References i, numRows, and theVec.

VVector & gbl::VVector::operator= ( const VVector aVector)

Assignment Vector=Vector.

Definition at line 321 of file VMatrix.cc.

View newest version in sPHENIX GitHub at line 321 of file VMatrix.cc

References getNumRows(), i, numRows, and theVec.

+ Here is the call graph for this function:

void gbl::VVector::print ( ) const

Print vector.

Definition at line 298 of file VMatrix.cc.

View newest version in sPHENIX GitHub at line 298 of file VMatrix.cc

References i, Acts::UnitConstants::min, numRows, and theVec.

Referenced by gbl::GblTrajectory::printTrajectory().

+ Here is the caller graph for this function:

void gbl::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 284 of file VMatrix.cc.

View newest version in sPHENIX GitHub at line 284 of file VMatrix.cc

References numRows, and theVec.

Referenced by gbl::BorderedBandMatrix::solveAndInvertBorderedBand().

+ Here is the caller graph for this function:

void gbl::VVector::resize ( const unsigned int  nRows)

Resize vector.

Parameters
[in]nRowsNumber of rows.

Definition at line 262 of file VMatrix.cc.

View newest version in sPHENIX GitHub at line 262 of file VMatrix.cc

References numRows, and theVec.

Referenced by gbl::GblTrajectory::buildLinearEquationSystem().

+ Here is the caller graph for this function:

Member Data Documentation

unsigned int gbl::VVector::numRows
private

Number of rows.

Definition at line 58 of file VMatrix.h.

View newest version in sPHENIX GitHub at line 58 of file VMatrix.h

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

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

Data.

Definition at line 59 of file VMatrix.h.

View newest version in sPHENIX GitHub at line 59 of file VMatrix.h

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


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