pub trait InnerProduct<Lhs: ?Sized, Rhs, Output> {
// Required method
fn inner_product<const CHECK: bool>(
lhs: &Lhs,
rhs: &[Rhs],
zero: Output,
) -> Result<Output, InnerProductError>;
}Expand description
A trait for inner product algorithms implementations.
Required Methods§
Sourcefn inner_product<const CHECK: bool>(
lhs: &Lhs,
rhs: &[Rhs],
zero: Output,
) -> Result<Output, InnerProductError>
fn inner_product<const CHECK: bool>( lhs: &Lhs, rhs: &[Rhs], zero: Output, ) -> Result<Output, InnerProductError>
The main entry point for the inner product.
CHECK determines whether the implementation should check for overflow.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.