#include <LinearAlgebra.h>
Public Member Functions | |
void | Clear () |
Free the matrix (requiring another SetSize(n) call for reuse) More... | |
LowerTriangularMatrix | GetInverse () const |
Get the inverse of the matrix. More... | |
unsigned int | GetSize () const |
LowerTriangularMatrix (const int n) | |
(n*n) lower triangular matrix More... | |
LowerTriangularMatrix (const int n, const double x) | |
(n*n) lower triangular matrix, elements intialized to x More... | |
LowerTriangularMatrix () | |
Empty matrix (needs SetSize() later) More... | |
const double & | operator() (const int row, const int col) const |
Read-only access to a matrix element. More... | |
double & | operator() (const int row, const int col) |
Read/write access to a matrix element. More... | |
ColumnVector | operator* (const ColumnVector &rhs) const |
LowerTriangularMatrix | operator+ (const LowerTriangularMatrix &rhs) const |
LowerTriangularMatrix | operator+ (const DiagonalMatrix &rhs) const |
void | Print () const |
Dump ASCII representation to STDOUT (for debugging) More... | |
void | SetSize (const int n) |
void | Zero () |
Set all elements to 0. More... | |
Private Attributes | |
std::vector< double > | fElements |
Friends | |
class | DiagonalMatrix |
Definition at line 60 of file LinearAlgebra.h.
|
inline |
(n*n) lower triangular matrix
Definition at line 63 of file LinearAlgebra.h.
|
inline |
(n*n) lower triangular matrix, elements intialized to x
Definition at line 66 of file LinearAlgebra.h.
|
inline |
Empty matrix (needs SetSize() later)
Definition at line 70 of file LinearAlgebra.h.
|
inline |
Free the matrix (requiring another SetSize(n) call for reuse)
Definition at line 81 of file LinearAlgebra.h.
References fElements.
LowerTriangularMatrix FdEnergyDepositFinderKG::LowerTriangularMatrix::GetInverse | ( | ) | const |
Get the inverse of the matrix.
Definition at line 78 of file LinearAlgebra.cc.
unsigned int FdEnergyDepositFinderKG::LowerTriangularMatrix::GetSize | ( | ) | const |
Definition at line 22 of file LinearAlgebra.cc.
References fElements, and sqrt().
Referenced by FdEnergyDepositFinderKG::ProfileFitter::GaisserHillasLogLike(), FdEnergyDepositFinderKG::ProfileFitter::GaisserHillasLogLikeConvoluted(), GetInverse(), FdEnergyDepositFinderKG::CFMatrixCalculator::GetSize(), FdEnergyDepositFinderKG::ProfileFitter::GHFitFunction(), operator*(), operator+(), and Print().
|
inline |
Read-only access to a matrix element.
Definition at line 74 of file LinearAlgebra.h.
References fElements.
|
inline |
Read/write access to a matrix element.
Definition at line 77 of file LinearAlgebra.h.
References fElements.
ColumnVector FdEnergyDepositFinderKG::LowerTriangularMatrix::operator* | ( | const ColumnVector & | rhs | ) | const |
Definition at line 30 of file LinearAlgebra.cc.
References FdEnergyDepositFinderKG::ColumnVector::fElements, fElements, FdEnergyDepositFinderKG::ColumnVector::GetSize(), GetSize(), and FdEnergyDepositFinderKG::ColumnVector::Zero().
LowerTriangularMatrix FdEnergyDepositFinderKG::LowerTriangularMatrix::operator+ | ( | const LowerTriangularMatrix & | rhs | ) | const |
Definition at line 58 of file LinearAlgebra.cc.
LowerTriangularMatrix FdEnergyDepositFinderKG::LowerTriangularMatrix::operator+ | ( | const DiagonalMatrix & | rhs | ) | const |
Definition at line 144 of file LinearAlgebra.cc.
References fElements, FdEnergyDepositFinderKG::DiagonalMatrix::fElements, GetSize(), and FdEnergyDepositFinderKG::DiagonalMatrix::GetSize().
void FdEnergyDepositFinderKG::LowerTriangularMatrix::Print | ( | ) | const |
Dump ASCII representation to STDOUT (for debugging)
Definition at line 119 of file LinearAlgebra.cc.
References GetSize().
|
inline |
Set the size of the matrix (the n in n*n). Does NOT initialize elements to 0.
Definition at line 87 of file LinearAlgebra.h.
References fElements.
void FdEnergyDepositFinderKG::LowerTriangularMatrix::Zero | ( | ) |
|
friend |
Definition at line 103 of file LinearAlgebra.h.
|
private |
Definition at line 101 of file LinearAlgebra.h.
Referenced by Clear(), GetSize(), operator()(), operator*(), operator+(), SetSize(), and Zero().