Merge loops

parent 536b14ca
...@@ -94,9 +94,8 @@ public: ...@@ -94,9 +94,8 @@ public:
Float2D(int _cols, int _rows) : rows(_rows),cols(_cols) Float2D(int _cols, int _rows) : rows(_rows),cols(_cols)
{ {
elem = new float[rows*cols]; elem = new float[rows*cols];
for(int i=0; i < cols; i++) for (int i = 0; i < rows*cols; i++)
for(int j=0; j < rows; j++) elem[i];
elem[i*rows+j] = 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