alloy::opsTrait Dot
source pub trait Dot<Rhs: ?Sized = Self> {
type Output;
// Required method
fn dot(&self, rhs: &Rhs) -> Self::Output;
}
Expand description
Trait for an algabraic scalar product between two equal-length sequences of
numbers and returns a single value.
See Dot Product for more information.
The output of this operation.
In most cases, this will be f32, since Alloy is largely built around
32-bit floating point numbers; though this can be configured.
Performs the dot-product between two values, and returns the output value.
§Argument
rhs - the right side operand of the operation.