|
FEDRA emulsion software from the OPERA Collaboration
|
#include <VtMatrix.hh>

Classes | |
| class | VtMatrix_row |
| class | VtMatrix_row_const |
Public Member Functions | |
— Constructors — | |
| VtMatrix (const unsigned int row, const unsigned int col) | |
| VtMatrix (const VtMatrix &rhs) | |
| virtual | ~VtMatrix () |
— Access functions — | |
| unsigned int | nrow () const |
| no of rows $n$ More... | |
| unsigned int | ncol () const |
| no of columns $m$ More... | |
| int | size () const |
| $m\times n$ More... | |
| VtMatrix_row | operator[] (int row) |
| VtMatrix_row_const | operator[] (int row) const |
| virtual double | operator() (unsigned int row, unsigned int col) const |
| virtual double & | operator() (const unsigned int row, const unsigned int col) |
| double | get (unsigned int row, unsigned int col) const |
| double & | get (unsigned int row, unsigned int col) |
— Matrix operations — | |
| void | VtT (void) |
| transform into transpose matrix More... | |
| const VtMatrix | T (void) const |
| return transpose More... | |
| virtual void | place_at (const VtMatrix &rhs, const unsigned int row, const unsigned int col) |
| copy a smaller matrix at a certain place More... | |
| virtual void | place_at (const VtVector &rhs, const unsigned int row, const unsigned int col) |
| copy a vector at a certain place More... | |
| void | copy (const VtMatrix &rhs) |
| to be used if matrix dimensions are not equal More... | |
| void | clear (void) |
| set matrix elements to 0 More... | |
| const VtMatrix & | operator= (const VtMatrix &rhs) |
| $\textbf{A} = \textbf{B}$ More... | |
| const VtMatrix & | operator= (const VtNegMatrix &rhs) |
| virtual const VtMatrix & | operator+= (const double rhs) |
| $\textbf{A} = (a_{\mu\nu} + \alpha)$ More... | |
| virtual const VtMatrix & | operator-= (const double rhs) |
| $\textbf{A} = (a_{\mu\nu} - \alpha)$ More... | |
| virtual const VtMatrix & | operator*= (const double rhs) |
| $\textbf{A} = (a_{\mu\nu} \cdot\alpha)$ More... | |
| virtual const VtMatrix & | operator/= (const double rhs) |
| $\textbf{A} = (a_{\mu\nu} / \alpha)$ More... | |
| const VtMatrix & | operator+= (const VtMatrix &rhs) |
| $\textbf{A} = (a_{\mu\nu} + b_{\mu\nu})$ More... | |
| const VtMatrix & | operator-= (const VtMatrix &rhs) |
| $\textbf{A} = (a_{\mu\nu} - b_{\mu\nu})$ More... | |
| const VtMatrix | operator+ (const VtMatrix &rhs) const |
| $\textbf{A} + \textbf{B}$ More... | |
| const VtMatrix | operator+ (const VtNegMatrix &rhs) const |
| const VtMatrix | operator- (const VtMatrix &rhs) const |
| $\textbf{A} - \textbf{B}$ More... | |
| const VtMatrix | operator- (const VtNegMatrix &rhs) const |
| const VtNegMatrix | operator- (void) const |
| $-\textbf{A}$ More... | |
| const VtMatrix | operator* (const VtMatrix &rhs) const |
| $\textbf{A}\cdot\textbf{B} = \sum_{\nu=1}^n a_{\mu\nu}b_{\nu\lambda}$ More... | |
| const VtVector | operator* (const VtVector &rhs) const |
| $\textbf{A}\cdot\vec{v} = (\sum_{\nu=1}^n a_{\mu\nu}v_{\nu})$ More... | |
— Expert functions — | |
| double * | m |
| double * | work |
| unsigned int | m_nrow |
| unsigned int | m_ncol |
| class | VtMatrix_row |
| class | VtMatrix_row_const |
| int | m_size |
| double * | array () const |
| return pointer to internal array More... | |
| virtual void | print (std::ostream &os) const |
Simple Matrix computation base class
| MATRIX::VtMatrix::VtMatrix | ( | const unsigned int | row, |
| const unsigned int | col | ||
| ) |
| MATRIX::VtMatrix::VtMatrix | ( | const VtMatrix & | rhs | ) |
|
inline |
return pointer to internal array
to be used if matrix dimensions are not equal
|
inline |
|
inline |
|
inline |
no of columns $m$
|
inline |
no of rows $n$
|
virtual |
Reimplemented in MATRIX::VtNegMatrix.
|
virtual |
Reimplemented in MATRIX::VtNegMatrix.
$\textbf{A}\cdot\textbf{B} = \sum_{\nu=1}^n a_{\mu\nu}b_{\nu\lambda}$
$\textbf{A}\cdot\vec{v} = (\sum_{\nu=1}^n a_{\mu\nu}v_{\nu})$
|
virtual |
$\textbf{A} = (a_{\mu\nu} \cdot\alpha)$
Reimplemented in MATRIX::VtSymMatrix, and MATRIX::VtNegMatrix.
| const VtMatrix MATRIX::VtMatrix::operator+ | ( | const VtNegMatrix & | rhs | ) | const |
|
virtual |
$\textbf{A} = (a_{\mu\nu} + \alpha)$
Reimplemented in MATRIX::VtSymMatrix, and MATRIX::VtNegMatrix.
$\textbf{A} = (a_{\mu\nu} + b_{\mu\nu})$
| const VtMatrix MATRIX::VtMatrix::operator- | ( | const VtNegMatrix & | rhs | ) | const |
| const VtNegMatrix MATRIX::VtMatrix::operator- | ( | void | ) | const |
|
virtual |
$\textbf{A} = (a_{\mu\nu} - \alpha)$
Reimplemented in MATRIX::VtSymMatrix, and MATRIX::VtNegMatrix.
|
virtual |
$\textbf{A} = (a_{\mu\nu} / \alpha)$
Reimplemented in MATRIX::VtSymMatrix, and MATRIX::VtNegMatrix.
| const VtMatrix & MATRIX::VtMatrix::operator= | ( | const VtNegMatrix & | rhs | ) |
|
inline |
|
inline |
|
virtual |
copy a smaller matrix at a certain place
Reimplemented in MATRIX::VtSymMatrix.
|
virtual |
copy a vector at a certain place
|
virtual |
Reimplemented in MATRIX::VtSymMatrix.
|
inline |
$m\times n$
return transpose
transform into transpose matrix
|
friend |
|
friend |
|
protected |
|
protected |
|
protected |
|
private |
|
protected |