CASToR  1.1
Tomographic Reconstruction (PET/SPECT)
 All Classes Files Functions Variables Typedefs Macros Groups Pages
oMatrix.hh
Go to the documentation of this file.
1 
8 #ifndef OMATRIX_HH
9 #define OMATRIX_HH 1
10 
11 #include "gVariables.hh"
12 #include "sOutputManager.hh"
13 
14 
20 class oMatrix
21 {
22  // Constructor & Destructor
23  public:
28  oMatrix();
33  ~oMatrix();
40  oMatrix(uint16_t nl, uint16_t nc);
41 
42 
43  // -------------------------------------------------------------------
44  // Public member functions
45  public:
52  void Allocate(uint16_t nl, uint16_t nc);
61  int SetMatriceElt(uint16_t l, uint16_t c, FLTNBLUT a_val);
69  FLTNBLUT GetMatriceElt(uint16_t l,uint16_t c);
78  int Multiplication(oMatrix *a_Mtx, oMatrix *a_MtxResult);
79 
80 
81  // -------------------------------------------------------------------
82  // Data members. (Nb lines/colons set public in order to optimize Multiplication function)
83  public:
84  uint16_t m_lin;
85  uint16_t m_col;
86  private:
88 };
89 
90 #endif
This header file is mainly used to declare some macro definitions and all includes needed from the st...
int SetMatriceElt(uint16_t l, uint16_t c, FLTNBLUT a_val)
Set the matrix element corresponding to the argument indices with the provided value.
Definition: oMatrix.cc:127
~oMatrix()
oMatrix destructor. Free memory of the oMatrix object.
Definition: oMatrix.cc:69
oMatrix()
oMatrix constructor. Initialize the member variables to their default values.
Definition: oMatrix.cc:29
#define FLTNBLUT
Definition: gVariables.hh:61
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 ...
Definition: oMatrix.cc:173
uint16_t m_lin
Definition: oMatrix.hh:84
FLTNBLUT GetMatriceElt(uint16_t l, uint16_t c)
Definition: oMatrix.cc:154
uint16_t m_col
Definition: oMatrix.hh:85
Declaration of class sOutputManager.
Structure designed for basic matrices operations.
Definition: oMatrix.hh:20
FLTNBLUT ** m2p_Mat
Definition: oMatrix.hh:87
void Allocate(uint16_t nl, uint16_t nc)
Instanciate a Matrix structure with the number of lines and colons provided in parameters.
Definition: oMatrix.cc:89