CLHEP 2.0.4.7 Reference Documentation
   
CLHEP Home Page     CLHEP Documentation     CLHEP Bug Reports

DiagMatrix.cc File Reference

#include <string.h>
#include <cmath>
#include "CLHEP/Matrix/defs.h"
#include "CLHEP/Random/Random.h"
#include "CLHEP/Matrix/DiagMatrix.h"
#include "CLHEP/Matrix/Matrix.h"
#include "CLHEP/Matrix/SymMatrix.h"
#include "CLHEP/Matrix/Vector.h"

Go to the source code of this file.

Namespaces

namespace  CLHEP

Defines

#define SIMPLE_UOP(OPER)
#define SIMPLE_BOP(OPER)
#define SIMPLE_TOP(OPER)
#define CHK_DIM_2(r1, r2, c1, c2, fun)
#define CHK_DIM_1(c1, r2, fun)

Functions

HepDiagMatrix CLHEP::dsum (const HepDiagMatrix &s1, const HepDiagMatrix &s2)
HepMatrix CLHEP::operator+ (const HepMatrix &m1, const HepDiagMatrix &d2)
HepMatrix CLHEP::operator+ (const HepDiagMatrix &d1, const HepMatrix &m2)
HepDiagMatrix CLHEP::operator+ (const HepDiagMatrix &m1, const HepDiagMatrix &d2)
HepSymMatrix CLHEP::operator+ (const HepDiagMatrix &d1, const HepSymMatrix &s2)
HepSymMatrix CLHEP::operator+ (const HepSymMatrix &s1, const HepDiagMatrix &d2)
HepMatrix CLHEP::operator- (const HepMatrix &m1, const HepDiagMatrix &d2)
HepMatrix CLHEP::operator- (const HepDiagMatrix &d1, const HepMatrix &m2)
HepDiagMatrix CLHEP::operator- (const HepDiagMatrix &d1, const HepDiagMatrix &d2)
HepSymMatrix CLHEP::operator- (const HepDiagMatrix &d1, const HepSymMatrix &s2)
HepSymMatrix CLHEP::operator- (const HepSymMatrix &s1, const HepDiagMatrix &d2)
HepDiagMatrix CLHEP::operator/ (const HepDiagMatrix &m1, double t)
HepDiagMatrix CLHEP::operator * (const HepDiagMatrix &d1, double t)
HepDiagMatrix CLHEP::operator * (double t, const HepDiagMatrix &d1)
HepMatrix CLHEP::operator * (const HepMatrix &m1, const HepDiagMatrix &m2)
HepMatrix CLHEP::operator * (const HepDiagMatrix &m1, const HepMatrix &m2)
HepDiagMatrix CLHEP::operator * (const HepDiagMatrix &m1, const HepDiagMatrix &m2)
HepVector CLHEP::operator * (const HepDiagMatrix &m1, const HepVector &m2)
std::ostream & CLHEP::operator<< (std::ostream &s, const HepDiagMatrix &q)


Define Documentation

#define CHK_DIM_1 ( c1,
r2,
fun   ) 

Value:

if (c1!=r2) { \
    HepGenMatrix::error("Range error in DiagMatrix function " #fun "(2)."); \
   }

Definition at line 83 of file DiagMatrix.cc.

Referenced by CLHEP::operator *(), CLHEP::operator+(), CLHEP::HepVector::operator+=(), CLHEP::operator-(), CLHEP::HepVector::operator-=(), CLHEP::HepDiagMatrix::similarity(), and CLHEP::HepDiagMatrix::similarityT().

#define CHK_DIM_2 ( r1,
r2,
c1,
c2,
fun   ) 

Value:

if (r1!=r2 || c1!=c2)  { \
    HepGenMatrix::error("Range error in DiagMatrix function " #fun "(1)."); \
   }

Definition at line 78 of file DiagMatrix.cc.

Referenced by CLHEP::HepVector::operator+=(), CLHEP::HepDiagMatrix::operator+=(), CLHEP::HepSymMatrix::operator+=(), CLHEP::HepMatrix::operator+=(), CLHEP::operator-(), CLHEP::HepVector::operator-=(), CLHEP::HepDiagMatrix::operator-=(), CLHEP::HepSymMatrix::operator-=(), and CLHEP::HepMatrix::operator-=().

#define SIMPLE_BOP ( OPER   ) 

Value:

register HepMatrix::mIter a=m.begin();            \
   register HepMatrix::mcIter b=m2.m.begin();         \
   register HepMatrix::mIter e=m.begin()+num_size(); \
   for(;a<e; a++, b++) (*a) OPER (*b);

Definition at line 65 of file DiagMatrix.cc.

Referenced by CLHEP::HepVector::operator+=(), CLHEP::HepSymMatrix::operator+=(), CLHEP::HepMatrix::operator+=(), CLHEP::HepDiagMatrix::operator+=(), CLHEP::HepVector::operator-=(), CLHEP::HepSymMatrix::operator-=(), CLHEP::HepMatrix::operator-=(), and CLHEP::HepDiagMatrix::operator-=().

#define SIMPLE_TOP ( OPER   ) 

Value:

register HepMatrix::mcIter a=m1.m.begin();            \
   register HepMatrix::mcIter b=m2.m.begin();         \
   register HepMatrix::mIter t=mret.m.begin();         \
   register HepMatrix::mcIter e=m1.m.begin()+m1.nrow; \
   for( ;a<e; a++, b++, t++) (*t) = (*a) OPER (*b);

Definition at line 71 of file DiagMatrix.cc.

Referenced by CLHEP::operator+(), and CLHEP::operator-().

#define SIMPLE_UOP ( OPER   ) 

Value:

register HepMatrix::mIter a=m.begin();            \
  register HepMatrix::mIter e=m.begin()+num_size(); \
  for(;a<e; a++) (*a) OPER t;

Definition at line 60 of file DiagMatrix.cc.

Referenced by CLHEP::HepVector::operator *=(), CLHEP::HepSymMatrix::operator *=(), CLHEP::HepMatrix::operator *=(), CLHEP::HepDiagMatrix::operator *=(), CLHEP::HepVector::operator/=(), CLHEP::HepSymMatrix::operator/=(), CLHEP::HepMatrix::operator/=(), and CLHEP::HepDiagMatrix::operator/=().


Generated on Thu Jul 1 22:02:31 2010 for CLHEP by  doxygen 1.4.7