Using D and std.ndslice as a Numpy Replacement

Jack Stouffer via Digitalmars-d-announce digitalmars-d-announce at puremagic.com
Sun Jan 3 17:47:04 PST 2016


On Monday, 4 January 2016 at 01:09:30 UTC, Ilya wrote:
> To be clear: there is NO data in Article example. Only CPU 
> registers are used. It is not fair. -- Ilya

Ok, I see were I made the mistake, I apologize. I believed that 
since I was only testing the np.mean line of code, that the lazy 
generation of the D in the D version would have no effects on the 
comparison. But I forgot the fact that the lazy generation would 
mean that no memory needed to be accessed in the D code and 
therefore it's not apples to apples with the Numpy code.

Thank you for clarifying this, I will update the article.


More information about the Digitalmars-d-announce mailing list