File tree Expand file tree Collapse file tree 1 file changed +13
-13
lines changed
Expand file tree Collapse file tree 1 file changed +13
-13
lines changed Original file line number Diff line number Diff line change @@ -554,23 +554,23 @@ struct Summator(T, Summation summation)
554554 else
555555 static if (summation == Summation.kb2)
556556 {
557- F s = F.init ;
558- F cs = F.init ;
559- F ccs = F.init ;
557+ F s;
558+ F cs;
559+ F ccs;
560560 }
561561 else
562562 static if (summation == Summation.kbn)
563563 {
564- F s = F.init ;
565- F c = F.init ;
564+ F s;
565+ F c;
566566 }
567567 else
568568 static if (summation == Summation.kahan)
569569 {
570- F s = F.init ;
571- F c = F.init ;
572- F y = F.init ; // do not declare in the loop/put (algo can be used for matrixes and etc)
573- F t = F.init ; // ditto
570+ F s;
571+ F c;
572+ F y; // do not declare in the loop/put (algo can be used for matrixes and etc)
573+ F t; // ditto
574574 }
575575 else
576576 static if (summation == Summation.pairwise)
@@ -580,22 +580,22 @@ struct Summator(T, Summation summation)
580580 static if (fastPairwise)
581581 {
582582 enum registersCount= 16 ;
583- F[size_t .sizeof * 8 ] partials = F.init ;
583+ F[size_t .sizeof * 8 ] partials;
584584 }
585585 else
586586 {
587- F[size_t .sizeof * 8 ] partials = F.init ;
587+ F[size_t .sizeof * 8 ] partials;
588588 }
589589 }
590590 else
591591 static if (summation == Summation.naive)
592592 {
593- F s = F.init ;
593+ F s;
594594 }
595595 else
596596 static if (summation == Summation.fast)
597597 {
598- F s = F.init ;
598+ F s;
599599 }
600600 else
601601 static assert (0 , " Unsupported summation type for std.numeric.Summator." );
You can’t perform that action at this time.
0 commit comments