Fix Float2D initialization

parent c0eb4386
...@@ -3,6 +3,7 @@ ...@@ -3,6 +3,7 @@
* This file is part of SWE. * This file is part of SWE.
* *
* @author Michael Bader, Kaveh Rahnema * @author Michael Bader, Kaveh Rahnema
* @author Sebastian Rettenberger
* *
* @section LICENSE * @section LICENSE
* *
...@@ -28,6 +29,7 @@ ...@@ -28,6 +29,7 @@
#ifndef __HELP_HH #ifndef __HELP_HH
#define __HELP_HH #define __HELP_HH
#include <cstring>
#include <iostream> #include <iostream>
#include <fstream> #include <fstream>
#include <sstream> #include <sstream>
...@@ -95,7 +97,7 @@ public: ...@@ -95,7 +97,7 @@ public:
{ {
elem = new float[rows*cols]; elem = new float[rows*cols];
for (int i = 0; i < rows*cols; i++) for (int i = 0; i < rows*cols; i++)
elem[i]; elem[i] = 0;
} }
~Float2D() ~Float2D()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment