Summator.sum

Returns the value of the sum.

struct Summator(T, Summation summation = Summation.Precise)
T
sum
()
if (
isMutable!T &&
(
summation == Summation.Precise &&
isFloatingPoint!T
||
summation == Summation.Kahan &&
isSummable!T
||
(
summation == Summation.KBN ||
summation == Summation.KB2
)
&&
(
isFloatingPoint!T ||
isComplex!T
)
)
)

Meta