Closed 3togo closed 5 years ago
In previous version, the following will work but the newest version won't.
for (int i = 0; i < HEIGHT; i++){ for (int j = 0; j < WIDTH; j++){ c.data[i*WIDTH+j] = a.data[i*WIDTH+j] / b.data[i*WIDTH+j];
}
@3togo This has been mentioned in the ChangeLog in points 10 and 11. The new way is as follows:
float val= a.read(i*WIDTH+j) / b.read(i*WIDTH+j); c.write(i*WIDTH+j, val);
float val= a.read(i*WIDTH+j) / b.read(i*WIDTH+j);
c.write(i*WIDTH+j, val);
@bgouthamb ,
Many thanks
In previous version, the following will work but the newest version won't.
}