Remplacement des 'powf(a, 2)' par 'a*a'.
[GPU.git] / WCudaMSE / Student_Cuda_Image / src / cpp / core / 05_HeatTransfert / moo / host / HeatImage.h
index 00224c8..04c5bfa 100644 (file)
@@ -1,14 +1,20 @@
 #ifndef HEAT_IMAGE_H
 #define HEAT_IMAGE_H
 
+#include <cstring>
+
 /*
  * Une classe représentant une image de float.
  */
 class HeatImage
     {
     public:
-        HeatImage(int w, int h, float* image = 0);
-        ~HeatImage();
+        HeatImage(int w, int h, float* image = 0) :
+            w(w), h(h), image(image)
+            {
+            }
+
+        ~HeatImage() {}
 
         inline void clear()
             {