CLHEP VERSION Reference Documentation
   
CLHEP Home Page     CLHEP Documentation     CLHEP Bug Reports

CLHEP::HepVector Class Reference

#include <Vector.h>

Inheritance diagram for CLHEP::HepVector:

CLHEP::HepGenMatrix List of all members.

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 &m2)
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

Protected Member Functions

virtual int num_size () const

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 &m1, const HepVector &m2)
HepVector operator * (const HepDiagMatrix &m1, const HepVector &m2)
HepMatrix operator * (const HepVector &m1, const HepMatrix &m2)
HepVector operator * (const HepMatrix &m1, const HepVector &m2)
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 &)

Detailed Description

Author:

Definition at line 39 of file Vector.h.


Constructor & Destructor Documentation

CLHEP::HepVector::HepVector (  )  [inline]

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

Definition at line 54 of file Vector.cc.

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

Definition at line 59 of file Vector.cc.

References CLHEP::HepGenMatrix::error().

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

Definition at line 80 of file Vector.cc.

References a, and b.

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

Definition at line 95 of file Vector.cc.

References m.

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

Definition at line 106 of file Vector.cc.

References CLHEP::HepGenMatrix::error(), CLHEP::HepMatrix::m, and CLHEP::HepMatrix::num_col().

CLHEP::HepVector::~HepVector (  )  [virtual]

Definition at line 92 of file Vector.cc.


Member Function Documentation

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

Definition at line 556 of file Vector.cc.

Referenced by main().

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

Referenced by main().

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

Referenced by main().

int CLHEP::HepVector::num_col (  )  const [inline, virtual]

Implements CLHEP::HepGenMatrix.

Definition at line 119 of file Vector.cc.

int CLHEP::HepVector::num_row (  )  const [inline, virtual]

Implements CLHEP::HepGenMatrix.

Definition at line 117 of file Vector.cc.

Referenced by CLHEP::dot(), CLHEP::dsum(), CLHEP::RandMultiGauss::fire(), CLHEP::RandMultiGauss::fireArray(), main(), CLHEP::operator *(), CLHEP::operator+(), operator+=(), CLHEP::HepMatrix::operator+=(), CLHEP::operator-(), operator-=(), CLHEP::HepMatrix::operator-=(), CLHEP::operator<<(), CLHEP::RandMultiGauss::RandMultiGauss(), CLHEP::HepDiagMatrix::similarity(), sub(), and CLHEP::vT_times_v().

int CLHEP::HepVector::num_size (  )  const [inline, protected, virtual]

Implements CLHEP::HepGenMatrix.

Definition at line 118 of file Vector.cc.

Referenced by CLHEP::dot().

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

Definition at line 450 of file Vector.cc.

References SIMPLE_UOP.

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

Implements CLHEP::HepGenMatrix.

Definition at line 129 of file Vector.cc.

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

Implements CLHEP::HepGenMatrix.

Definition at line 142 of file Vector.cc.

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

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

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

Definition at line 416 of file Vector.cc.

References CHK_DIM_1, num_row(), and SIMPLE_BOP.

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

Definition at line 409 of file Vector.cc.

References CHK_DIM_2, CLHEP::HepMatrix::num_col(), CLHEP::HepMatrix::num_row(), num_row(), and SIMPLE_BOP.

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

Definition at line 213 of file Vector.cc.

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

Definition at line 437 of file Vector.cc.

References CHK_DIM_1, num_row(), and SIMPLE_BOP.

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

Definition at line 430 of file Vector.cc.

References CHK_DIM_2, CLHEP::HepMatrix::num_col(), CLHEP::HepMatrix::num_row(), num_row(), and SIMPLE_BOP.

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

Definition at line 444 of file Vector.cc.

References SIMPLE_UOP.

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

Definition at line 494 of file Vector.cc.

References CLHEP::Hep3Vector::x(), CLHEP::Hep3Vector::y(), and CLHEP::Hep3Vector::z().

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

Definition at line 480 of file Vector.cc.

References CLHEP::HepGenMatrix::error(), CLHEP::HepMatrix::m, CLHEP::HepMatrix::nrow, and CLHEP::HepMatrix::num_col().

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

Definition at line 469 of file Vector.cc.

References m, and nrow.

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

Reimplemented from CLHEP::HepGenMatrix.

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

Reimplemented from CLHEP::HepGenMatrix.

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

Definition at line 180 of file Vector.cc.

References CLHEP::HepGenMatrix::error(), m, and num_row().

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

Definition at line 168 of file Vector.cc.

References CLHEP::HepGenMatrix::error(), m, and num_row().

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

Definition at line 151 of file Vector.cc.

Referenced by main().

HepMatrix CLHEP::HepVector::T (  )  const

Definition at line 531 of file Vector.cc.

Referenced by main().


Friends And Related Function Documentation

void back_solve ( const HepMatrix R,
HepVector b 
) [friend]

void col_house ( HepMatrix ,
const HepMatrix ,
double  ,
int  ,
int  ,
int  ,
int   
) [friend]

double dot ( const HepVector v1,
const HepVector v2 
) [friend]

Definition at line 543 of file Vector.cc.

friend class HepDiagMatrix [friend]

Definition at line 136 of file Vector.h.

friend class HepMatrix [friend]

Definition at line 138 of file Vector.h.

friend class HepSymMatrix [friend]

Definition at line 137 of file Vector.h.

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

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

void house_with_update ( HepMatrix a,
int  row,
int  col 
) [friend]

HepVector operator * ( const HepMatrix m1,
const HepVector m2 
) [friend]

HepMatrix operator * ( const HepVector m1,
const HepMatrix m2 
) [friend]

Definition at line 380 of file Vector.cc.

HepVector operator * ( const HepDiagMatrix m1,
const HepVector m2 
) [friend]

Definition at line 433 of file DiagMatrix.cc.

HepVector operator * ( const HepSymMatrix m1,
const HepVector m2 
) [friend]

Definition at line 510 of file SymMatrix.cc.

HepVector operator+ ( const HepVector v1,
const HepVector v2 
) [friend]

HepVector operator- ( const HepVector v1,
const HepVector v2 
) [friend]

HepVector qr_solve ( HepMatrix ,
const HepVector  
) [friend]

void row_house ( HepMatrix ,
const HepVector ,
double  ,
int  ,
int   
) [friend]

void row_house ( HepMatrix ,
const HepMatrix ,
double  ,
int  ,
int  ,
int  ,
int   
) [friend]

HepVector solve ( const HepMatrix a,
const HepVector v 
) [friend]

void swap ( HepVector v1,
HepVector v2 
) [friend]

void tridiagonal ( HepSymMatrix a,
HepMatrix hsm 
) [friend]

HepSymMatrix vT_times_v ( const HepVector v  )  [friend]

Definition at line 542 of file SymMatrix.cc.


The documentation for this class was generated from the following files:
Generated on 15 Nov 2012 for CLHEP by  doxygen 1.4.7