dotProduct

Computes the dot product of input ranges a and b. The two ranges must have the same length. If both ranges define length, the check is done once; otherwise, it is done at each iteration.

  1. CommonType!(ElementType!(Range1), ElementType!(Range2)) dotProduct(Range1 a, Range2 b)
  2. CommonType!(F1, F2) dotProduct(F1[] avector, F2[] bvector)
  3. F dotProduct(F[N] a, F[N] b)
    F
    dotProduct
    (
    F
    uint N
    )
    (
    const ref scope F[N] a
    ,
    const ref scope F[N] b
    )
    if (
    N <= 16
    )

Meta