dot

Sums xi * yi using a higher precision, rounding only once at the end.

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

Return Value

Type: D

x0 * y0 + x1 * y1 + ... + xn * yn Notes: If x and y arrays are not of the same length, operation is performed for min(x.length, y.length);

Throws

InvalidOperationExceptionany x is signaling NaN
InvalidOperationExceptionany combination of elements is (±∞, ±0.0) or (±0.0, ±∞)
InvalidOperationExceptionthere are two products resulting in infinities of different sign
OverflowExceptionresult is too big to be represented
UnderflowExceptionresult is too small to be represented
InexactExceptionresult is inexact

Meta