sumAbs

Sums absolute elements of x using a higher precision, rounding only once at the end.

@IEEECompliant("sumAbs", 47)
D
sumAbs
(
D
)
(
const(D)[] x
)

Return Value

Type: D

|x0| + |x1| + ... + |xn|

Throws

InvalidOperationExceptionany x is signaling NaN
OverflowExceptionresult is too big to be represented
UnderflowExceptionresult is too small to be represented
InexactExceptionresult is inexact

Meta