D Mir: standard deviation speed

tastyminerals tastyminerals at gmail.com
Wed Jul 15 07:34:59 UTC 2020


On Wednesday, 15 July 2020 at 06:57:21 UTC, 9il wrote:
> On Wednesday, 15 July 2020 at 06:55:51 UTC, 9il wrote:
>> On Wednesday, 15 July 2020 at 06:00:46 UTC, tastyminerals 
>> wrote:
>>> On Wednesday, 15 July 2020 at 02:08:48 UTC, 9il wrote:
>>>> On Tuesday, 14 July 2020 at 19:04:45 UTC, tastyminerals 
>>>> wrote:
>>>>> @fastmath private double sd0(T)(Slice!(T*, 1) flatMatrix)
>>>>
>>>> @fastmath shouldn't be really used with summation algorithms 
>>>> except the `"fast"` version of them. Otherwise, they may or 
>>>> may not behave like "fast".
>>>
>>> Good to know. So, it's fine to use it with sum!"fast" but 
>>> better avoid it for general purposes.
>>
>> They both are more precise by default.
>
> This was a reply to the other your post in the thread, sorry. 
> Mir algorithms are more precise by default then the algorithms 
> you have provided.

Right. Is this why standardDeviation is significantly slower?




More information about the Digitalmars-d-learn mailing list