CLHEP VERSION 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
 

Macros

#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 &hm1, const HepDiagMatrix &d2)
 
HepMatrix CLHEP::operator+ (const HepDiagMatrix &d1, const HepMatrix &hm2)
 
HepDiagMatrix CLHEP::operator+ (const HepDiagMatrix &hm1, 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 &hm1, const HepDiagMatrix &d2)
 
HepMatrix CLHEP::operator- (const HepDiagMatrix &d1, const HepMatrix &hm2)
 
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 &hm1, double t)
 
HepDiagMatrix CLHEP::operator* (const HepDiagMatrix &d1, double t)
 
HepDiagMatrix CLHEP::operator* (double t, const HepDiagMatrix &d1)
 
HepMatrix CLHEP::operator* (const HepMatrix &hm1, const HepDiagMatrix &hm2)
 
HepMatrix CLHEP::operator* (const HepDiagMatrix &hm1, const HepMatrix &hm2)
 
HepDiagMatrix CLHEP::operator* (const HepDiagMatrix &hm1, const HepDiagMatrix &hm2)
 
HepVector CLHEP::operator* (const HepDiagMatrix &hm1, const HepVector &hm2)
 
std::ostream & CLHEP::operator<< (std::ostream &s, const HepDiagMatrix &q)
 

Macro Definition Documentation

◆ CHK_DIM_1

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

Definition at line 52 of file DiagMatrix.cc.

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

◆ CHK_DIM_2

◆ SIMPLE_BOP

◆ SIMPLE_TOP

#define SIMPLE_TOP ( OPER)
Value:
HepMatrix::mcIter a=hm1.m.begin(); \
HepMatrix::mcIter b=hm2.m.begin(); \
HepMatrix::mIter t=mret.m.begin(); \
HepMatrix::mcIter e=hm1.m.begin()+hm1.nrow; \
for( ;a<e; a++, b++, t++) (*t) = (*a) OPER (*b);

Definition at line 40 of file DiagMatrix.cc.

◆ SIMPLE_UOP

#define SIMPLE_UOP ( OPER)