CASToR  1.0
Tomographic Reconstruction (PET/SPECT)
Public Member Functions | Public Attributes | Private Attributes
oMatrix Class Reference

Structure designed for basic matrices operations. More...

#include <oMatrix.hh>

List of all members.

Public Member Functions

 oMatrix ()
 oMatrix constructor. Initialize the member variables to their default values.
 ~oMatrix ()
 oMatrix destructor. Free memory of the oMatrix object.
 oMatrix (uint16_t nl, uint16_t nc)
 oMatrix constructor. Instanciate a matrix structure with the number of lines and colons provided in parameters
void Allocate (uint16_t nl, uint16_t nc)
 Instanciate a Matrix structure with the number of lines and colons provided in parameters.
int SetMatriceElt (uint16_t l, uint16_t c, FLTNBLUT a_val)
 Set the matrix element corresponding to the argument indices with the provided value.
FLTNBLUT GetMatriceElt (uint16_t l, uint16_t c)
int Multiplication (oMatrix *a_Mtx, oMatrix *a_MtxResult)
 Multiply the member matrix with the matrix provided in 1st parameter Return the result in the matric provided in 2nd parameter.

Public Attributes

uint16_t m_lin
uint16_t m_col

Private Attributes

FLTNBLUT ** 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 20 of file oMatrix.hh.


Constructor & Destructor Documentation

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

Definition at line 29 of file oMatrix.cc.

oMatrix destructor. Free memory of the oMatrix object.

Definition at line 69 of file oMatrix.cc.

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 49 of file oMatrix.cc.


Member Function Documentation

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

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 89 of file oMatrix.cc.

FLTNBLUT oMatrix::GetMatriceElt ( uint16_t  l,
uint16_t  c 
)
Parameters:
l,:a line index
c,:a colon index
Returns:
the matrix element value corresponding to the argument indices provided in arguments.

Definition at line 159 of file oMatrix.cc.

Here is the caller graph for this function:

int oMatrix::Multiplication ( oMatrix a_Mtx,
oMatrix a_MtxResult 
)

Multiply the member matrix with the matrix provided in 1st parameter Return the result in the matric provided in 2nd parameter.

Parameters:
ap_Mtx,:a line index
ap_MtxResult,:a colon index
Returns:
0 if success, positive value otherwise

Definition at line 183 of file oMatrix.cc.

Here is the call graph for this function:

Here is the caller graph for this function:

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

Set the matrix element corresponding to the argument indices with the provided value.

Parameters:
l,:a line index
c,:a colon index
a_val: a value to initialize the matrix element with
Returns:
0 if success, positive value otherwise

Definition at line 127 of file oMatrix.cc.

Here is the caller graph for this function:


Member Data Documentation

2D pointer containing the matrix elements. Default =NULL

Definition at line 87 of file oMatrix.hh.

uint16_t oMatrix::m_col

Number of colons in the matrix. Default =0

Definition at line 85 of file oMatrix.hh.

uint16_t oMatrix::m_lin

Number of lines in the matrix. Default =0

Definition at line 84 of file oMatrix.hh.


The documentation for this class was generated from the following files:
 All Classes Files Functions Variables Typedefs Defines