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)
  2. CommonType!(F1, F2) dotProduct(F1[] avector, F2[] bvector)
    CommonType!(F1, F2)
    dotProduct
    (
    F1
    F2
    )
    (
    in F1[] avector
    ,
    in F2[] bvector
    )
  3. F dotProduct(F[N] a, F[N] b)

Meta