D Mir: standard deviation speed

9il ilyayaroshenko at gmail.com
Wed Jul 15 11:41:35 UTC 2020

On Wednesday, 15 July 2020 at 11:37:23 UTC, jmh530 wrote:
> On Wednesday, 15 July 2020 at 11:26:19 UTC, 9il wrote:
>> [snip]
>>> @fmamath private double sd(T)(Slice!(T*, 1) flatMatrix)
>> @fastmath violates all summation algorithms except `"fast"`.
>> The same bug is in the original author's post.
> I hadn't realized that @fmamath was the problem, rather than 
> @fastmath overall. @fmamathis used on many mir.math.stat 
> functions, though admittedly not in the accumulators.

Ah, no, my bad! You write @fmamath, I have read it as @fastmath. 
@fmamath is OK here.

More information about the Digitalmars-d-learn mailing list