Closed johnperry-math closed 3 years ago
Incidentally, it seems to me that the C and Fortran versions are incorrect. The C version produces an invalid bitmap on both my machines, and the Fortran version produces a slightly mistake image. (It's subtle; you have to compare with other versions to see the difference.)
Thanks I'll check how to fix C and Fortran samples.
This builds and runs on MacOS and Linux machines with the free GNAT compiler. It's available for Windows, but I don't have a Windows machine to try it on, so
run.bat
hasn't been tested.Performance of the standard implementation is comparable to C++, roughly 5%-10% slower. I've added some other implementations that are less standard (I was experimenting); one has roughly the same performance, the others are a bit slower.