CASToR  3.2
Tomographic Reconstruction (PET/SPECT/CT)
code/include/scanner/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 
19 class oMatrix
20 {
21  // Constructor & Destructor
22  public:
27  oMatrix();
32  ~oMatrix();
39  oMatrix(uint16_t nl, uint16_t nc);
40 
41 
42  // -------------------------------------------------------------------
43  // Public member functions
44  public:
51  void Allocate(uint16_t nl, uint16_t nc);
60  int SetMatriceElt(uint16_t l, uint16_t c, HPFLTNB a_val);
68  HPFLTNB GetMatriceElt(uint16_t l,uint16_t c);
73  HPFLTNB** GetMtx() {return m2p_Mat; }
82  int Multiplication(oMatrix *ap_Mtx, oMatrix *ap_MtxResult);
89  int Transpose(oMatrix *a_MtxResult);
99  int Inverse(oMatrix *ap_MtxResult);
106  int SetXRotMtx(HPFLTNB ang);
107 
114  int SetYRotMtx(HPFLTNB ang);
115 
122  int SetZRotMtx(HPFLTNB ang);
123 
124 
129  void Describe();
130 
131  // -------------------------------------------------------------------
132  // Data members. (Nb lines/colons set public in order to optimize Multiplication function)
133  public:
134  uint16_t m_lin;
135  uint16_t m_col;
136  private:
138 };
139 
140 #endif
int Inverse(oMatrix *ap_MtxResult)
~oMatrix()
oMatrix destructor. Free memory of the oMatrix object.
oMatrix()
oMatrix constructor. Initialize the member variables to their default values.
HPFLTNB GetMatriceElt(uint16_t l, uint16_t c)
void Describe()
Display the element of the matrix.
Structure designed for basic matrices operations.
int SetXRotMtx(HPFLTNB ang)
int Multiplication(oMatrix *ap_Mtx, oMatrix *ap_MtxResult)
int SetMatriceElt(uint16_t l, uint16_t c, HPFLTNB a_val)
int SetZRotMtx(HPFLTNB ang)
int SetYRotMtx(HPFLTNB ang)
int Transpose(oMatrix *a_MtxResult)
void Allocate(uint16_t nl, uint16_t nc)