in System.Numerics/SIMD/Mandelbrot/ScalarDouble.cs [18:47]
public void RenderSingleThreadedWithADT(float xminf, float xmaxf, float yminf, float ymaxf, float stepf)
{
double xmin = (double)xminf;
double xmax = (double)xmaxf;
double ymin = (double)yminf;
double ymax = (double)ymaxf;
double step = (double)stepf;
int yp = 0;
for (double y = ymin; y < ymax && !Abort; y += step, yp++)
{
int xp = 0;
for (double x = xmin; x < xmax; x += step, xp++)
{
Complex num = new Complex(x, y);
Complex accum = num;
int iters = 0;
double sqabs = 0f;
do
{
accum = accum.square();
accum += num;
iters++;
sqabs = accum.sqabs();
} while (sqabs < limit && iters < max_iters);
DrawPixel(xp, yp, iters);
}
}
}