The OpenD Programming Language

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)
    CommonType!(ElementType!(Range1), ElementType!(Range2))
    dotProduct
    (
    Range1
    Range2
    )
    (
    Range1 a
    ,
    Range2 b
    )
    if (
    isInputRange!(Range1) &&
    isInputRange!(Range2)
    &&
    !(
    isArray!(Range1) &&
    isArray!(Range2)
    )
    )
  2. CommonType!(F1, F2) dotProduct(F1[] avector, F2[] bvector)
  3. F dotProduct(F[N] a, F[N] b)

Meta