CLHEP 2.4.7.1
C++ Class Library for High Energy Physics
Public Member Functions | Protected Member Functions | Friends | List of all members
CLHEP::HepVector Class Reference

#include <CLHEP/Matrix/Vector.h>

Inheritance diagram for CLHEP::HepVector:
CLHEP::HepGenMatrix

Public Member Functions

 HepVector ()
 
 HepVector (int p)
 
 HepVector (int p, int)
 
 HepVector (int p, HepRandom &r)
 
 HepVector (const HepVector &v)
 
 HepVector (const HepMatrix &m)
 
virtual ~HepVector ()
 
const double & operator() (int row) const
 
double & operator() (int row)
 
const double & operator[] (int row) const
 
double & operator[] (int row)
 
virtual const double & operator() (int row, int col) const
 
virtual double & operator() (int row, int col)
 
HepVectoroperator*= (double t)
 
HepVectoroperator/= (double t)
 
HepVectoroperator+= (const HepMatrix &v2)
 
HepVectoroperator+= (const HepVector &v2)
 
HepVectoroperator-= (const HepMatrix &v2)
 
HepVectoroperator-= (const HepVector &v2)
 
HepVectoroperator= (const HepVector &hm2)
 
HepVectoroperator= (const HepMatrix &)
 
HepVectoroperator= (const Hep3Vector &)
 
HepVector operator- () const
 
HepVector apply (double(*f)(double, int)) const
 
HepVector sub (int min_row, int max_row) const
 
HepVector sub (int min_row, int max_row)
 
void sub (int row, const HepVector &v1)
 
double normsq () const
 
double norm () const
 
virtual int num_row () const
 
virtual int num_col () const
 
HepMatrix T () const
 
- Public Member Functions inherited from CLHEP::HepGenMatrix
virtual ~HepGenMatrix ()
 
HepGenMatrix_row operator[] (int)
 
const HepGenMatrix_row_const operator[] (int) const
 
virtual bool operator== (const HepGenMatrix &) const
 

Protected Member Functions

virtual int num_size () const
 
- Protected Member Functions inherited from CLHEP::HepGenMatrix
void delete_m (int size, double *)
 
double * new_m (int size)
 

Friends

class HepDiagMatrix
 
class HepSymMatrix
 
class HepMatrix
 
void swap (HepVector &v1, HepVector &v2)
 
double dot (const HepVector &v1, const HepVector &v2)
 
HepVector operator+ (const HepVector &v1, const HepVector &v2)
 
HepVector operator- (const HepVector &v1, const HepVector &v2)
 
HepVector operator* (const HepSymMatrix &hm1, const HepVector &hm2)
 
HepVector operator* (const HepDiagMatrix &hm1, const HepVector &hm2)
 
HepMatrix operator* (const HepVector &hm1, const HepMatrix &hm2)
 
HepVector operator* (const HepMatrix &hm1, const HepVector &hm2)
 
HepVector solve (const HepMatrix &a, const HepVector &v)
 
void tridiagonal (HepSymMatrix *a, HepMatrix *hsm)
 
void row_house (HepMatrix *, const HepMatrix &, double, int, int, int, int)
 
void row_house (HepMatrix *, const HepVector &, double, int, int)
 
void back_solve (const HepMatrix &R, HepVector *b)
 
void col_house (HepMatrix *, const HepMatrix &, double, int, int, int, int)
 
HepVector house (const HepSymMatrix &a, int row, int col)
 
HepVector house (const HepMatrix &a, int row, int col)
 
void house_with_update (HepMatrix *a, int row, int col)
 
HepSymMatrix vT_times_v (const HepVector &v)
 
HepVector qr_solve (HepMatrix *, const HepVector &)
 

Additional Inherited Members

- Public Types inherited from CLHEP::HepGenMatrix
enum  { size_max = 25 }
 
typedef std::vector< double, Alloc< double, 25 > >::iterator mIter
 
typedef std::vector< double, Alloc< double, 25 > >::const_iterator mcIter
 
- Static Public Member Functions inherited from CLHEP::HepGenMatrix
static void swap (int &, int &)
 
static void swap (std::vector< double, Alloc< double, 25 > > &, std::vector< double, Alloc< double, 25 > > &)
 
static void error (const char *s)
 

Detailed Description

Author

Definition at line 35 of file Vector.h.

Constructor & Destructor Documentation

◆ HepVector() [1/6]

CLHEP::HepVector::HepVector ( )
inline

Definition at line 18 of file Vector.icc.

◆ HepVector() [2/6]

CLHEP::HepVector::HepVector ( int p)
explicit

◆ HepVector() [3/6]

CLHEP::HepVector::HepVector ( int p,
int  )

◆ HepVector() [4/6]

CLHEP::HepVector::HepVector ( int p,
HepRandom & r )

◆ HepVector() [5/6]

CLHEP::HepVector::HepVector ( const HepVector & v)

◆ HepVector() [6/6]

CLHEP::HepVector::HepVector ( const HepMatrix & m)

◆ ~HepVector()

virtual CLHEP::HepVector::~HepVector ( )
virtual

Member Function Documentation

◆ apply()

HepVector CLHEP::HepVector::apply ( double(*)(double, int) f) const

◆ norm()

double CLHEP::HepVector::norm ( ) const
inline

Definition at line 23 of file Vector.icc.

References normsq().

◆ normsq()

double CLHEP::HepVector::normsq ( ) const
inline

Definition at line 22 of file Vector.icc.

References dot.

Referenced by norm().

◆ num_col()

virtual int CLHEP::HepVector::num_col ( ) const
virtual

Implements CLHEP::HepGenMatrix.

◆ num_row()

virtual int CLHEP::HepVector::num_row ( ) const
virtual

◆ num_size()

virtual int CLHEP::HepVector::num_size ( ) const
protectedvirtual

Implements CLHEP::HepGenMatrix.

◆ operator()() [1/4]

double & CLHEP::HepVector::operator() ( int row)
inline

Definition at line 25 of file Vector.icc.

References CLHEP::HepGenMatrix::error().

◆ operator()() [2/4]

const double & CLHEP::HepVector::operator() ( int row) const
inline

Definition at line 34 of file Vector.icc.

References CLHEP::HepGenMatrix::error().

◆ operator()() [3/4]

virtual double & CLHEP::HepVector::operator() ( int row,
int col )
virtual

Implements CLHEP::HepGenMatrix.

◆ operator()() [4/4]

virtual const double & CLHEP::HepVector::operator() ( int row,
int col ) const
virtual

Implements CLHEP::HepGenMatrix.

◆ operator*=()

HepVector & CLHEP::HepVector::operator*= ( double t)

◆ operator+=() [1/2]

HepVector & CLHEP::HepVector::operator+= ( const HepMatrix & v2)

◆ operator+=() [2/2]

HepVector & CLHEP::HepVector::operator+= ( const HepVector & v2)

◆ operator-()

HepVector CLHEP::HepVector::operator- ( ) const

◆ operator-=() [1/2]

HepVector & CLHEP::HepVector::operator-= ( const HepMatrix & v2)

◆ operator-=() [2/2]

HepVector & CLHEP::HepVector::operator-= ( const HepVector & v2)

◆ operator/=()

HepVector & CLHEP::HepVector::operator/= ( double t)

◆ operator=() [1/3]

HepVector & CLHEP::HepVector::operator= ( const Hep3Vector & )

◆ operator=() [2/3]

HepVector & CLHEP::HepVector::operator= ( const HepMatrix & )

◆ operator=() [3/3]

HepVector & CLHEP::HepVector::operator= ( const HepVector & hm2)

◆ operator[]() [1/2]

double & CLHEP::HepVector::operator[] ( int row)
inline

Definition at line 43 of file Vector.icc.

References CLHEP::HepGenMatrix::error().

◆ operator[]() [2/2]

const double & CLHEP::HepVector::operator[] ( int row) const
inline

Definition at line 52 of file Vector.icc.

References CLHEP::HepGenMatrix::error().

◆ sub() [1/3]

HepVector CLHEP::HepVector::sub ( int min_row,
int max_row )

◆ sub() [2/3]

HepVector CLHEP::HepVector::sub ( int min_row,
int max_row ) const

◆ sub() [3/3]

void CLHEP::HepVector::sub ( int row,
const HepVector & v1 )

◆ T()

HepMatrix CLHEP::HepVector::T ( ) const

Friends And Related Symbol Documentation

◆ back_solve

void back_solve ( const HepMatrix & R,
HepVector * b )
friend

◆ col_house

void col_house ( HepMatrix * ,
const HepMatrix & ,
double ,
int ,
int ,
int ,
int  )
friend

◆ dot

double dot ( const HepVector & v1,
const HepVector & v2 )
friend

Referenced by normsq().

◆ HepDiagMatrix

friend class HepDiagMatrix
friend

Definition at line 132 of file Vector.h.

◆ HepMatrix

friend class HepMatrix
friend

Definition at line 134 of file Vector.h.

◆ HepSymMatrix

friend class HepSymMatrix
friend

Definition at line 133 of file Vector.h.

◆ house [1/2]

HepVector house ( const HepMatrix & a,
int row,
int col )
friend

◆ house [2/2]

HepVector house ( const HepSymMatrix & a,
int row,
int col )
friend

◆ house_with_update

void house_with_update ( HepMatrix * a,
int row,
int col )
friend

◆ operator* [1/4]

HepVector operator* ( const HepDiagMatrix & hm1,
const HepVector & hm2 )
friend

◆ operator* [2/4]

HepVector operator* ( const HepMatrix & hm1,
const HepVector & hm2 )
friend

◆ operator* [3/4]

HepVector operator* ( const HepSymMatrix & hm1,
const HepVector & hm2 )
friend

◆ operator* [4/4]

HepMatrix operator* ( const HepVector & hm1,
const HepMatrix & hm2 )
friend

◆ operator+

HepVector operator+ ( const HepVector & v1,
const HepVector & v2 )
friend

◆ operator-

HepVector operator- ( const HepVector & v1,
const HepVector & v2 )
friend

◆ qr_solve

HepVector qr_solve ( HepMatrix * ,
const HepVector &  )
friend

◆ row_house [1/2]

void row_house ( HepMatrix * ,
const HepMatrix & ,
double ,
int ,
int ,
int ,
int  )
friend

◆ row_house [2/2]

void row_house ( HepMatrix * ,
const HepVector & ,
double ,
int ,
int  )
friend

◆ solve

HepVector solve ( const HepMatrix & a,
const HepVector & v )
friend

◆ swap

void swap ( HepVector & v1,
HepVector & v2 )
friend

Definition at line 13 of file Vector.icc.

◆ tridiagonal

void tridiagonal ( HepSymMatrix * a,
HepMatrix * hsm )
friend

◆ vT_times_v

HepSymMatrix vT_times_v ( const HepVector & v)
friend

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