fn dot(&self, other: &Self) -> f64 {
        debug_assert_eq!(self.dimension(), other.dimension());
        let mut result = 0.0;
        for i in 0..self.dimension() {
            result += self.at(i) * other.at(i)
        }
        result
    }
/// Scalar product
///
/// Default implementation using `at` and `dimension` is provided
Scalar product
Default implementation using `at` and `dimension` is provided
Scalar product Default implementation using ` at ` and ` dimension ` is provided
fn dot(&self, other: &Self) -> f64 {
        debug_assert_eq!(self.dimension(), other.dimension());
        let mut result = 0.0;
        for i in 0..self.dimension() {
            result += self.at(i) * other.at(i)
        }
        result
    }
fn dot ( & self , other : & Self ) -> f64 { debug_assert_eq ! ( self dimension ( ) other dimension ( ) ) ; let mut result = 0.0 ; for i in 0 .. self . dimension ( ) { result += self . at ( i ) * other . at ( i ) } result }
Scalar product
Default implementation using `at` and `dimension` is provided
Scalar product Default implementation using ` at ` and ` dimension ` is provided
&self
other
&Self
&self
other
&Self