Skip to main content

Module inner_product

Module inner_product 

Source

Structs§

BooleanInnerProductAdd
The inner product for slices containing Boolean elements. Uses add or checked_add to sum the elements of the RHS that correspond to true elements of the boolean slice.
MBSInnerProduct
An implementation of inner product that piggies back on the MulByScalar and CheckedAdd traits. It does mul_by_scalar for products of terms and then combines the results using either add or checked_add.
ScalarProduct
The inner product for vectors of length 1 (a.k.a. scalars). Uses mul_by_scalar to multiply the only components of vectors to get the result.

Enums§

InnerProductError

Traits§

InnerProduct
A trait for inner product algorithms implementations.