Go to the documentation of this file.
23 #include "CLHEP/Matrix/defs.h"
24 #include "CLHEP/Matrix/GenMatrix.h"
39 class HepVector :
public HepGenMatrix {
59 inline const double &
operator()(
int row)
const;
64 inline const double &
operator[](
int row)
const;
69 virtual const double &
operator()(
int row,
int col)
const;
109 inline double normsq()
const;
112 inline double norm()
const;
133 virtual void invert(
int&);
166 std::vector<double > m;
168 std::vector<double,Alloc<double,25> >
m;
177 std::ostream&
operator<<(std::ostream &s,
const HepVector &
v);
180 HepVector
operator*(
const HepMatrix &hm1,
const HepVector &hm2);
181 HepVector
operator*(
double t,
const HepVector &v1);
182 HepVector
operator*(
const HepVector &v1,
double t);
186 HepVector
operator/(
const HepVector &v1,
double t);
189 HepVector
operator+(
const HepMatrix &hm1,
const HepVector &v2);
190 HepVector
operator+(
const HepVector &v1,
const HepMatrix &hm2);
191 HepVector
operator+(
const HepVector &v1,
const HepVector &v2);
194 HepVector
operator-(
const HepMatrix &hm1,
const HepVector &v2);
195 HepVector
operator-(
const HepVector &v1,
const HepMatrix &hm2);
196 HepVector
operator-(
const HepVector &v1,
const HepVector &v2);
199 HepVector
dsum(
const HepVector &s1,
const HepVector &s2);
204 #ifdef ENABLE_BACKWARDS_COMPATIBILITY
206 using namespace CLHEP;
209 #include "CLHEP/Matrix/Vector.icc"
friend void house_with_update(HepMatrix *a, int row, int col)
const double & operator[](int row) const
friend void swap(HepVector &v1, HepVector &v2)
friend HepVector house(const HepSymMatrix &a, int row, int col)
HepVector operator-() const
HepVector & operator-=(const HepMatrix &v2)
HepVector & operator=(const HepVector &hm2)
friend class HepSymMatrix
HepLorentzVector operator/(const HepLorentzVector &, double a)
virtual int num_row() const
friend void row_house(HepMatrix *, const HepMatrix &, double, int, int, int, int)
friend double dot(const HepVector &v1, const HepVector &v2)
friend void back_solve(const HepMatrix &R, HepVector *b)
Hep3Vector operator-(const Hep3Vector &, const Hep3Vector &)
they are gone ZOOM Features Discontinued The following features of the ZOOM package were felt to be extreme overkill These have been after checking that no existing user code was utilizing as in SpaceVector v
Issues Concerning the PhysicsVectors CLHEP Vector Merge The merge of ZOOM PhysicsVdectors and the CLHEP Vector package is completed The purpose of this document is to list the major issues that affected the merge of these and where relevant describe the resolutions More detailed documents describe more minor issues General Approach As agreed at the June CLHEP the approach is to combine the features of each ZOOM class with the corresponding CLHEP class expanding the interface to create a single lingua franca of what a Hep3Vector(for example) means. We are not forming SpaceVector as an class derived from Hep3Vector and enhancing it in that way. Another rule imposed by the agreement is to avoid using the Exceptions package(even though that will later go into CLHEP for other uses). A desirable goal is to avoid cluttering the interface and enlarging the code linked in when ordinary CLHEP Vector functionallity is used. To this end
const double & operator()(int row) const
friend HepVector solve(const HepMatrix &a, const HepVector &v)
friend HepVector operator+(const HepVector &v1, const HepVector &v2)
virtual int num_col() const
HepVector sub(int min_row, int max_row) const
friend HepVector operator*(const HepSymMatrix &hm1, const HepVector &hm2)
virtual int num_size() const
HepVector & operator+=(const HepMatrix &v2)
Hep3Vector operator+(const Hep3Vector &, const Hep3Vector &)
friend HepVector qr_solve(HepMatrix *, const HepVector &)
HepVector & operator*=(double t)
friend void tridiagonal(HepSymMatrix *a, HepMatrix *hsm)
Application of Rotations and LorentzTransformations to containers of and as in Rotation R
std::ostream & operator<<(std::ostream &os, const HepAxisAngle &aa)
HepVector apply(double(*f)(double, int)) const
friend class HepDiagMatrix
HepLorentzRotation operator*(const HepRotation &r, const HepLorentzRotation <)
HepDiagMatrix dsum(const HepDiagMatrix &s1, const HepDiagMatrix &s2)
HepVector & operator/=(double t)
friend HepSymMatrix vT_times_v(const HepVector &v)
friend void col_house(HepMatrix *, const HepMatrix &, double, int, int, int, int)