Merge loops

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