Definitions and lemmas for Vector #
accumulateProducts separates product accumulation from reduction. Its reduction theorem
recovers dotProduct whenever reduction preserves zero, addition, and the chosen products.
Instances For
Inner product between two vectors of the same size. Should be faster than _root_.dotProduct
due to efficient operations on Vectors.
Instances For
Inner product between two vectors of the same size. Should be faster than _root_.dotProduct
due to efficient operations on Vectors.
Instances For
Accumulate paired products from equal-length vectors, from left to right, starting at init.
The products and accumulator lie in W; no reduction is performed.
Instances For
If reduction preserves addition and each paired product, reducing the accumulator gives the reduced initial value plus the dot product of the input vectors.
Reducing a product accumulator initialized at zero recovers the dot product.
A matrix represented as iterated vectors in row-major order.
m is the number of rows, and n is the number of columns
Instances For
A ring homomorphism maps a dot product to the dot product of the mapped vectors.