![]() |
CASToR
1.0
Tomographic Reconstruction (PET/SPECT)
|
00001 00008 #ifndef OMATRIX_HH 00009 #define OMATRIX_HH 1 00010 00011 #include "gVariables.hh" 00012 #include "sOutputManager.hh" 00013 00014 00020 class oMatrix 00021 { 00022 // Constructor & Destructor 00023 public: 00028 oMatrix(); 00033 ~oMatrix(); 00040 oMatrix(uint16_t nl, uint16_t nc); 00041 00042 00043 // ------------------------------------------------------------------- 00044 // Public member functions 00045 public: 00052 void Allocate(uint16_t nl, uint16_t nc); 00061 int SetMatriceElt(uint16_t l, uint16_t c, FLTNBLUT a_val); 00069 FLTNBLUT GetMatriceElt(uint16_t l,uint16_t c); 00078 int Multiplication(oMatrix *a_Mtx, oMatrix *a_MtxResult); 00079 00080 00081 // ------------------------------------------------------------------- 00082 // Data members. (Nb lines/colons set public in order to optimize Multiplication function) 00083 public: 00084 uint16_t m_lin; 00085 uint16_t m_col; 00086 private: 00087 FLTNBLUT **m2p_Mat; 00088 }; 00089 00090 #endif