CLHEP 2.0.4.7 Reference Documentation
CLHEP Home Page CLHEP Documentation CLHEP Bug Reports |
#include <Vector.h>
Inheritance diagram for CLHEP::HepVector:
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) |
HepVector & | operator *= (double t) |
HepVector & | operator/= (double t) |
HepVector & | operator+= (const HepMatrix &v2) |
HepVector & | operator+= (const HepVector &v2) |
HepVector & | operator-= (const HepMatrix &v2) |
HepVector & | operator-= (const HepVector &v2) |
HepVector & | operator= (const HepVector &m2) |
HepVector & | operator= (const HepMatrix &) |
HepVector & | operator= (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 &) |
Definition at line 70 of file Vector.h.
CLHEP::HepVector::HepVector | ( | ) | [inline] |
CLHEP::HepVector::HepVector | ( | int | p, | |
int | ||||
) |
CLHEP::HepVector::HepVector | ( | const HepVector & | v | ) |
CLHEP::HepVector::HepVector | ( | const HepMatrix & | m | ) |
Definition at line 139 of file Vector.cc.
References CLHEP::HepGenMatrix::error(), CLHEP::HepMatrix::m, and CLHEP::HepMatrix::num_col().
HepVector CLHEP::HepVector::apply | ( | double(*)(double, int) | f | ) | const |
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] |
int CLHEP::HepVector::num_row | ( | ) | const [inline, virtual] |
Implements CLHEP::HepGenMatrix.
Definition at line 150 of file Vector.cc.
Referenced by CLHEP::back_solve(), 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::qr_solve(), 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 151 of file Vector.cc.
Referenced by CLHEP::dot().
HepVector & CLHEP::HepVector::operator *= | ( | double | t | ) |
double & CLHEP::HepVector::operator() | ( | int | row, | |
int | col | |||
) | [inline, virtual] |
const double & CLHEP::HepVector::operator() | ( | int | row, | |
int | col | |||
) | const [inline, virtual] |
double& CLHEP::HepVector::operator() | ( | int | row | ) | [inline] |
const double& CLHEP::HepVector::operator() | ( | int | row | ) | const [inline] |
Definition at line 442 of file Vector.cc.
References CHK_DIM_2, CLHEP::HepMatrix::num_col(), CLHEP::HepMatrix::num_row(), num_row(), and SIMPLE_BOP.
Definition at line 463 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 | ) |
HepVector & CLHEP::HepVector::operator= | ( | const Hep3Vector & | ) |
Definition at line 527 of file Vector.cc.
References CLHEP::Hep3Vector::x(), CLHEP::Hep3Vector::y(), and CLHEP::Hep3Vector::z().
Definition at line 513 of file Vector.cc.
References CLHEP::HepGenMatrix::error(), CLHEP::HepMatrix::m, CLHEP::HepMatrix::nrow, and CLHEP::HepMatrix::num_col().
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 213 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 201 of file Vector.cc.
References CLHEP::HepGenMatrix::error(), m, and num_row().
HepVector CLHEP::HepVector::sub | ( | int | min_row, | |
int | max_row | |||
) | const |
HepMatrix CLHEP::HepVector::T | ( | ) | const |
friend class HepDiagMatrix [friend] |
friend class HepSymMatrix [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 HepDiagMatrix & | m1, | |
const HepVector & | m2 | |||
) | [friend] |
Definition at line 464 of file DiagMatrix.cc.
HepVector operator * | ( | const HepSymMatrix & | m1, | |
const HepVector & | m2 | |||
) | [friend] |
Definition at line 541 of file SymMatrix.cc.
void tridiagonal | ( | HepSymMatrix * | a, | |
HepMatrix * | hsm | |||
) | [friend] |
HepSymMatrix vT_times_v | ( | const HepVector & | v | ) | [friend] |
Definition at line 573 of file SymMatrix.cc.