CLHEP VERSION Reference Documentation
CLHEP Home Page CLHEP Documentation CLHEP Bug Reports |
#include <Matrix.h>
Inheritance diagram for CLHEP::HepMatrix:
Public Member Functions | |
HepMatrix () | |
HepMatrix (int p, int q) | |
HepMatrix (int p, int q, int i) | |
HepMatrix (int p, int q, HepRandom &r) | |
HepMatrix (const HepMatrix &m1) | |
HepMatrix (const HepSymMatrix &m1) | |
HepMatrix (const HepDiagMatrix &m1) | |
HepMatrix (const HepVector &m1) | |
virtual | ~HepMatrix () |
virtual int | num_row () const |
virtual int | num_col () const |
virtual const double & | operator() (int row, int col) const |
virtual double & | operator() (int row, int col) |
HepMatrix & | operator *= (double t) |
HepMatrix & | operator/= (double t) |
HepMatrix & | operator+= (const HepMatrix &m2) |
HepMatrix & | operator+= (const HepSymMatrix &m2) |
HepMatrix & | operator+= (const HepDiagMatrix &m2) |
HepMatrix & | operator+= (const HepVector &m2) |
HepMatrix & | operator-= (const HepMatrix &m2) |
HepMatrix & | operator-= (const HepSymMatrix &m2) |
HepMatrix & | operator-= (const HepDiagMatrix &m2) |
HepMatrix & | operator-= (const HepVector &m2) |
HepMatrix & | operator= (const HepMatrix &m2) |
HepMatrix & | operator= (const HepSymMatrix &m2) |
HepMatrix & | operator= (const HepDiagMatrix &m2) |
HepMatrix & | operator= (const HepVector &m2) |
HepMatrix & | operator= (const HepRotation &m2) |
HepMatrix | operator- () const |
HepMatrix | apply (double(*f)(double, int, int)) const |
HepMatrix | T () const |
HepMatrix | sub (int min_row, int max_row, int min_col, int max_col) const |
void | sub (int row, int col, const HepMatrix &m1) |
HepMatrix | inverse (int &ierr) const |
virtual void | invert (int &ierr) |
void | invert () |
HepMatrix | inverse () const |
double | determinant () const |
double | trace () const |
HepMatrix_row | operator[] (int) |
const HepMatrix_row_const | operator[] (int) const |
Protected Member Functions | |
virtual int | num_size () const |
virtual void | invertHaywood4 (int &ierr) |
virtual void | invertHaywood5 (int &ierr) |
virtual void | invertHaywood6 (int &ierr) |
Friends | |
class | HepMatrix_row |
class | HepMatrix_row_const |
class | HepVector |
class | HepSymMatrix |
class | HepDiagMatrix |
void | swap (HepMatrix &m1, HepMatrix &m2) |
HepMatrix | operator+ (const HepMatrix &m1, const HepMatrix &m2) |
HepMatrix | operator- (const HepMatrix &m1, const HepMatrix &m2) |
HepMatrix | operator * (const HepMatrix &m1, const HepMatrix &m2) |
HepMatrix | operator * (const HepMatrix &m1, const HepSymMatrix &m2) |
HepMatrix | operator * (const HepMatrix &m1, const HepDiagMatrix &m2) |
HepMatrix | operator * (const HepSymMatrix &m1, const HepMatrix &m2) |
HepMatrix | operator * (const HepDiagMatrix &m1, const HepMatrix &m2) |
HepMatrix | operator * (const HepVector &m1, const HepMatrix &m2) |
HepVector | operator * (const HepMatrix &m1, const HepVector &m2) |
HepMatrix | operator * (const HepSymMatrix &m1, const HepSymMatrix &m2) |
HepVector | solve (const HepMatrix &, const HepVector &) |
HepVector | qr_solve (HepMatrix *, const HepVector &) |
HepMatrix | qr_solve (HepMatrix *, const HepMatrix &b) |
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 | back_solve (const HepMatrix &R, HepMatrix *b) |
void | col_givens (HepMatrix *A, double c, double s, int k1, int k2, int rowmin, int rowmax) |
void | row_givens (HepMatrix *A, double c, double s, int k1, int k2, int colmin, int colmax) |
void | col_house (HepMatrix *, const HepMatrix &, double, int, int, int, int) |
HepVector | house (const HepMatrix &a, int row, int col) |
void | house_with_update (HepMatrix *a, int row, int col) |
void | house_with_update (HepMatrix *a, HepMatrix *v, int row, int col) |
void | house_with_update2 (HepSymMatrix *a, HepMatrix *v, int row, int col) |
Classes | |
class | HepMatrix_row |
class | HepMatrix_row_const |
Definition at line 209 of file Matrix.h.
CLHEP::HepMatrix::HepMatrix | ( | ) | [inline] |
CLHEP::HepMatrix::HepMatrix | ( | int | p, | |
int | q, | |||
int | i | |||
) |
CLHEP::HepMatrix::HepMatrix | ( | int | p, | |
int | q, | |||
HepRandom & | r | |||
) |
CLHEP::HepMatrix::HepMatrix | ( | const HepMatrix & | m1 | ) |
CLHEP::HepMatrix::HepMatrix | ( | const HepSymMatrix & | m1 | ) |
CLHEP::HepMatrix::HepMatrix | ( | const HepDiagMatrix & | m1 | ) |
Definition at line 166 of file Matrix.cc.
References CLHEP::HepDiagMatrix::m, CLHEP::detail::n, and num_row().
CLHEP::HepMatrix::HepMatrix | ( | const HepVector & | m1 | ) |
HepMatrix CLHEP::HepMatrix::apply | ( | double(*)(double, int, int) | f | ) | const |
double CLHEP::HepMatrix::determinant | ( | ) | const |
Definition at line 815 of file Matrix.cc.
References dfact_matrix(), and CLHEP::HepGenMatrix::error().
HepMatrix CLHEP::HepMatrix::inverse | ( | ) | const [inline] |
void CLHEP::HepMatrix::invert | ( | ) | [inline] |
void CLHEP::HepMatrix::invert | ( | int & | ierr | ) | [virtual] |
Implements CLHEP::HepGenMatrix.
Definition at line 707 of file Matrix.cc.
References CLHEP::HepGenMatrix::error(), invertHaywood4(), invertHaywood5(), and invertHaywood6().
Referenced by test_inversion().
void CLHEP::HepMatrix::invertHaywood4 | ( | int & | ierr | ) | [protected, virtual] |
void CLHEP::HepMatrix::invertHaywood5 | ( | int & | ierr | ) | [protected, virtual] |
void CLHEP::HepMatrix::invertHaywood6 | ( | int & | ierr | ) | [protected, virtual] |
int CLHEP::HepMatrix::num_col | ( | ) | const [virtual] |
Implements CLHEP::HepGenMatrix.
Definition at line 122 of file Matrix.cc.
Referenced by CLHEP::back_solve(), CLHEP::col_givens(), CLHEP::col_house(), CLHEP::dsum(), CLHEP::HepVector::HepVector(), CLHEP::house_with_update(), CLHEP::house_with_update2(), CLHEP::operator *(), operator()(), CLHEP::HepVector::operator+=(), operator+=(), CLHEP::operator-(), CLHEP::HepVector::operator-=(), operator-=(), CLHEP::operator<<(), CLHEP::HepVector::operator=(), CLHEP::qr_decomp(), CLHEP::qr_inverse(), CLHEP::qr_solve(), CLHEP::row_givens(), CLHEP::row_house(), sub(), and CLHEP::tridiagonal().
int CLHEP::HepMatrix::num_row | ( | ) | const [virtual] |
Implements CLHEP::HepGenMatrix.
Definition at line 120 of file Matrix.cc.
Referenced by CLHEP::HepDiagMatrix::assign(), CLHEP::col_givens(), CLHEP::dsum(), HepMatrix(), CLHEP::operator *(), operator()(), CLHEP::HepVector::operator+=(), operator+=(), CLHEP::operator-(), CLHEP::HepVector::operator-=(), operator-=(), CLHEP::operator<<(), CLHEP::qr_decomp(), CLHEP::qr_inverse(), sub(), and CLHEP::tridiagonal().
int CLHEP::HepMatrix::num_size | ( | ) | const [protected, virtual] |
Implements CLHEP::HepGenMatrix.
Definition at line 124 of file Matrix.cc.
Referenced by CLHEP::operator *().
HepMatrix & CLHEP::HepMatrix::operator *= | ( | double | t | ) |
double & CLHEP::HepMatrix::operator() | ( | int | row, | |
int | col | |||
) | [virtual] |
Implements CLHEP::HepGenMatrix.
Definition at line 128 of file Matrix.cc.
References CLHEP::HepGenMatrix::error(), num_col(), and num_row().
const double & CLHEP::HepMatrix::operator() | ( | int | row, | |
int | col | |||
) | const [virtual] |
Implements CLHEP::HepGenMatrix.
Definition at line 137 of file Matrix.cc.
References CLHEP::HepGenMatrix::error(), num_col(), and num_row().
Definition at line 402 of file Vector.cc.
References CHK_DIM_2, num_col(), CLHEP::HepVector::num_row(), num_row(), and SIMPLE_BOP.
HepMatrix & CLHEP::HepMatrix::operator+= | ( | const HepDiagMatrix & | m2 | ) |
Definition at line 454 of file DiagMatrix.cc.
References CHK_DIM_2, CLHEP::HepDiagMatrix::m, CLHEP::detail::n, CLHEP::HepDiagMatrix::num_col(), num_col(), CLHEP::HepDiagMatrix::num_row(), and num_row().
HepMatrix & CLHEP::HepMatrix::operator+= | ( | const HepSymMatrix & | m2 | ) |
Definition at line 562 of file SymMatrix.cc.
References CHK_DIM_2, CLHEP::HepSymMatrix::m, CLHEP::HepSymMatrix::num_col(), num_col(), CLHEP::HepSymMatrix::num_row(), and num_row().
Definition at line 423 of file Vector.cc.
References CHK_DIM_2, num_col(), CLHEP::HepVector::num_row(), num_row(), and SIMPLE_BOP.
HepMatrix & CLHEP::HepMatrix::operator-= | ( | const HepDiagMatrix & | m2 | ) |
Definition at line 486 of file DiagMatrix.cc.
References CHK_DIM_2, CLHEP::HepDiagMatrix::m, CLHEP::detail::n, CLHEP::HepDiagMatrix::num_col(), num_col(), CLHEP::HepDiagMatrix::num_row(), and num_row().
HepMatrix & CLHEP::HepMatrix::operator-= | ( | const HepSymMatrix & | m2 | ) |
Definition at line 585 of file SymMatrix.cc.
References CHK_DIM_2, CLHEP::HepSymMatrix::m, CLHEP::HepSymMatrix::num_col(), num_col(), CLHEP::HepSymMatrix::num_row(), and num_row().
HepMatrix & CLHEP::HepMatrix::operator/= | ( | double | t | ) |
HepMatrix & CLHEP::HepMatrix::operator= | ( | const HepRotation & | m2 | ) |
Definition at line 17 of file MatrixEqRotation.cc.
References CLHEP::HepRotation::xx(), CLHEP::HepRotation::xy(), CLHEP::HepRotation::xz(), CLHEP::HepRotation::yx(), CLHEP::HepRotation::yy(), CLHEP::HepRotation::yz(), CLHEP::HepRotation::zx(), CLHEP::HepRotation::zy(), and CLHEP::HepRotation::zz().
Definition at line 456 of file Vector.cc.
References CLHEP::HepVector::m, and CLHEP::HepVector::nrow.
HepMatrix & CLHEP::HepMatrix::operator= | ( | const HepDiagMatrix & | m2 | ) |
Definition at line 530 of file DiagMatrix.cc.
References CLHEP::HepDiagMatrix::m, CLHEP::detail::n, and CLHEP::HepDiagMatrix::nrow.
HepMatrix & CLHEP::HepMatrix::operator= | ( | const HepSymMatrix & | m2 | ) |
Definition at line 620 of file SymMatrix.cc.
References CLHEP::HepSymMatrix::m, and CLHEP::HepSymMatrix::nrow.
const HepMatrix_row_const CLHEP::HepMatrix::operator[] | ( | int | ) | const [inline] |
Reimplemented from CLHEP::HepGenMatrix.
HepMatrix_row CLHEP::HepMatrix::operator[] | ( | int | ) | [inline] |
Reimplemented from CLHEP::HepGenMatrix.
void CLHEP::HepMatrix::sub | ( | int | row, | |
int | col, | |||
const HepMatrix & | m1 | |||
) |
HepMatrix CLHEP::HepMatrix::sub | ( | int | min_row, | |
int | max_row, | |||
int | min_col, | |||
int | max_col | |||
) | const |
HepMatrix CLHEP::HepMatrix::T | ( | ) | const |
void col_givens | ( | HepMatrix * | A, | |
double | c, | |||
double | s, | |||
int | k1, | |||
int | k2, | |||
int | rowmin, | |||
int | rowmax | |||
) | [friend] |
friend class HepDiagMatrix [friend] |
friend class HepMatrix_row [friend] |
friend class HepMatrix_row_const [friend] |
friend class HepSymMatrix [friend] |
void house_with_update | ( | HepMatrix * | a, | |
int | row, | |||
int | col | |||
) | [friend] |
void house_with_update2 | ( | HepSymMatrix * | a, | |
HepMatrix * | v, | |||
int | row, | |||
int | col | |||
) | [friend] |
HepMatrix operator * | ( | const HepSymMatrix & | m1, | |
const HepSymMatrix & | m2 | |||
) | [friend] |
HepMatrix operator * | ( | const HepDiagMatrix & | m1, | |
const HepMatrix & | m2 | |||
) | [friend] |
HepMatrix operator * | ( | const HepSymMatrix & | m1, | |
const HepMatrix & | m2 | |||
) | [friend] |
HepMatrix operator * | ( | const HepMatrix & | m1, | |
const HepDiagMatrix & | m2 | |||
) | [friend] |
HepMatrix operator * | ( | const HepMatrix & | m1, | |
const HepSymMatrix & | m2 | |||
) | [friend] |
void row_givens | ( | HepMatrix * | A, | |
double | c, | |||
double | s, | |||
int | k1, | |||
int | k2, | |||
int | colmin, | |||
int | colmax | |||
) | [friend] |
void tridiagonal | ( | HepSymMatrix * | a, | |
HepMatrix * | hsm | |||
) | [friend] |