CASToR  3.2
Tomographic Reconstruction (PET/SPECT/CT)
Public Member Functions | Public Attributes | Private Attributes | List of all members
oMatrix Class Reference

Structure designed for basic matrices operations. More...

#include <oMatrix.hh>

Collaboration diagram for oMatrix:
Collaboration graph

Public Member Functions

 oMatrix ()
 oMatrix constructor. Initialize the member variables to their default values. More...
 
 ~oMatrix ()
 oMatrix destructor. Free memory of the oMatrix object. More...
 
 oMatrix (uint16_t nl, uint16_t nc)
 oMatrix constructor. Instanciate a matrix structure with the number of lines and colons provided in parameters More...
 
void Allocate (uint16_t nl, uint16_t nc)
 
int SetMatriceElt (uint16_t l, uint16_t c, HPFLTNB a_val)
 
HPFLTNB GetMatriceElt (uint16_t l, uint16_t c)
 
HPFLTNB ** GetMtx ()
 
int Multiplication (oMatrix *ap_Mtx, oMatrix *ap_MtxResult)
 
int Transpose (oMatrix *a_MtxResult)
 
int Inverse (oMatrix *ap_MtxResult)
 
int SetXRotMtx (HPFLTNB ang)
 
int SetYRotMtx (HPFLTNB ang)
 
int SetZRotMtx (HPFLTNB ang)
 
void Describe ()
 Display the element of the matrix. More...
 
 oMatrix ()
 oMatrix constructor. Initialize the member variables to their default values. More...
 
 ~oMatrix ()
 oMatrix destructor. Free memory of the oMatrix object. More...
 
 oMatrix (uint16_t nl, uint16_t nc)
 oMatrix constructor. Instanciate a matrix structure with the number of lines and colons provided in parameters More...
 
void Allocate (uint16_t nl, uint16_t nc)
 
int SetMatriceElt (uint16_t l, uint16_t c, HPFLTNB a_val)
 
HPFLTNB GetMatriceElt (uint16_t l, uint16_t c)
 
HPFLTNB ** GetMtx ()
 
int Multiplication (oMatrix *ap_Mtx, oMatrix *ap_MtxResult)
 
int Transpose (oMatrix *a_MtxResult)
 
int Inverse (oMatrix *ap_MtxResult)
 
int SetXRotMtx (HPFLTNB ang)
 
int SetYRotMtx (HPFLTNB ang)
 
int SetZRotMtx (HPFLTNB ang)
 
void Describe ()
 

Public Attributes

uint16_t m_lin
 
uint16_t m_col
 

Private Attributes

HPFLTNB ** m2p_Mat
 

Detailed Description

Structure designed for basic matrices operations.

This structure is mostly used in scanner classes, for geometrical rotation purposes

Definition at line 19 of file code/include/scanner/oMatrix.hh.

Constructor & Destructor Documentation

◆ oMatrix() [1/4]

oMatrix::oMatrix ( )

oMatrix constructor. Initialize the member variables to their default values.

Definition at line 18 of file code/src/scanner/oMatrix.cc.

Here is the caller graph for this function:

◆ ~oMatrix() [1/2]

oMatrix::~oMatrix ( )

oMatrix destructor. Free memory of the oMatrix object.

Definition at line 58 of file code/src/scanner/oMatrix.cc.

◆ oMatrix() [2/4]

oMatrix::oMatrix ( uint16_t  nl,
uint16_t  nc 
)

oMatrix constructor. Instanciate a matrix structure with the number of lines and colons provided in parameters

Parameters
nl: a number of lines
nc: a number of colons

Definition at line 38 of file code/src/scanner/oMatrix.cc.

◆ oMatrix() [3/4]

oMatrix::oMatrix ( )

oMatrix constructor. Initialize the member variables to their default values.

◆ ~oMatrix() [2/2]

oMatrix::~oMatrix ( )

oMatrix destructor. Free memory of the oMatrix object.

◆ oMatrix() [4/4]

oMatrix::oMatrix ( uint16_t  nl,
uint16_t  nc 
)

oMatrix constructor. Instanciate a matrix structure with the number of lines and colons provided in parameters

Parameters
nl: a number of lines
nc: a number of colons

Member Function Documentation

◆ Allocate() [1/2]

void oMatrix::Allocate ( uint16_t  nl,
uint16_t  nc 
)

Definition at line 78 of file code/src/scanner/oMatrix.cc.

◆ Allocate() [2/2]

void oMatrix::Allocate ( uint16_t  nl,
uint16_t  nc 
)

◆ Describe() [1/2]

void oMatrix::Describe ( )

Display the element of the matrix.

Definition at line 450 of file code/src/scanner/oMatrix.cc.

Here is the caller graph for this function:

◆ Describe() [2/2]

void oMatrix::Describe ( )

◆ GetMatriceElt() [1/2]

HPFLTNB oMatrix::GetMatriceElt ( uint16_t  l,
uint16_t  c 
)

Definition at line 143 of file code/src/scanner/oMatrix.cc.

Here is the caller graph for this function:

◆ GetMatriceElt() [2/2]

HPFLTNB oMatrix::GetMatriceElt ( uint16_t  l,
uint16_t  c 
)

◆ GetMtx() [1/2]

HPFLTNB ** oMatrix::GetMtx ( )
inline
Returns
pointer to the matrix array.

Definition at line 73 of file code/include/scanner/oMatrix.hh.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ GetMtx() [2/2]

HPFLTNB** oMatrix::GetMtx ( )
inline

Definition at line 73 of file include/scanner/oMatrix.hh.

Here is the call graph for this function:

◆ Inverse() [1/2]

int oMatrix::Inverse ( oMatrix ap_MtxResult)

◆ Inverse() [2/2]

int oMatrix::Inverse ( oMatrix ap_MtxResult)

Definition at line 263 of file code/src/scanner/oMatrix.cc.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ Multiplication() [1/2]

int oMatrix::Multiplication ( oMatrix ap_Mtx,
oMatrix ap_MtxResult 
)

◆ Multiplication() [2/2]

int oMatrix::Multiplication ( oMatrix ap_Mtx,
oMatrix ap_MtxResult 
)

Definition at line 162 of file code/src/scanner/oMatrix.cc.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ SetMatriceElt() [1/2]

int oMatrix::SetMatriceElt ( uint16_t  l,
uint16_t  c,
HPFLTNB  a_val 
)

Definition at line 116 of file code/src/scanner/oMatrix.cc.

Here is the caller graph for this function:

◆ SetMatriceElt() [2/2]

int oMatrix::SetMatriceElt ( uint16_t  l,
uint16_t  c,
HPFLTNB  a_val 
)

◆ SetXRotMtx() [1/2]

int oMatrix::SetXRotMtx ( HPFLTNB  ang)

◆ SetXRotMtx() [2/2]

int oMatrix::SetXRotMtx ( HPFLTNB  ang)

Definition at line 350 of file code/src/scanner/oMatrix.cc.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ SetYRotMtx() [1/2]

int oMatrix::SetYRotMtx ( HPFLTNB  ang)

Definition at line 384 of file code/src/scanner/oMatrix.cc.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ SetYRotMtx() [2/2]

int oMatrix::SetYRotMtx ( HPFLTNB  ang)

◆ SetZRotMtx() [1/2]

int oMatrix::SetZRotMtx ( HPFLTNB  ang)

◆ SetZRotMtx() [2/2]

int oMatrix::SetZRotMtx ( HPFLTNB  ang)

Definition at line 418 of file code/src/scanner/oMatrix.cc.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ Transpose() [1/2]

int oMatrix::Transpose ( oMatrix a_MtxResult)

Definition at line 206 of file code/src/scanner/oMatrix.cc.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ Transpose() [2/2]

int oMatrix::Transpose ( oMatrix a_MtxResult)

Member Data Documentation

◆ m2p_Mat

HPFLTNB ** oMatrix::m2p_Mat
private

2D pointer containing the matrix elements. Default =NULL

Definition at line 137 of file code/include/scanner/oMatrix.hh.

◆ m_col

uint16_t oMatrix::m_col

Number of colons in the matrix. Default =0

Definition at line 135 of file code/include/scanner/oMatrix.hh.

◆ m_lin

uint16_t oMatrix::m_lin

Number of lines in the matrix. Default =0

Definition at line 134 of file code/include/scanner/oMatrix.hh.


The documentation for this class was generated from the following files: