pub fn distance_squared<V: Value>(point_a: &ArrayView1<V>, point_b: &ArrayView1<V>) -> V {
    let mut distance = V::zero();
    for i in 0..point_a.shape()[0] {
        let delta = point_a[i] - point_b[i];
        distance = distance + (delta * delta)
    }
    distance
}
/// Find the square of the distance between two data points, given as Array rows.
Find the square of the distance between two data points, given as Array rows.
Find the square of the distance between two data points given as Array rows .
pub fn distance_squared<V: Value>(point_a: &ArrayView1<V>, point_b: &ArrayView1<V>) -> V {
    let mut distance = V::zero();
    for i in 0..point_a.shape()[0] {
        let delta = point_a[i] - point_b[i];
        distance = distance + (delta * delta)
    }
    distance
}
pub fn distance_squared < V : Value > ( point_a : & ArrayView1 < V > , point_b : & ArrayView1 < V > ) -> V { let mut distance = V :: zero ( ) ; for i in 0 .. point_a . shape ( ) [ 0 ] { let delta = point_a [ i ] - point_b [ i ] ; distance = distance + ( delta * delta ) } distance }
Find the square of the distance between two data points, given as Array rows.
Find the square of the distance between two data points given as Array rows .
point_a
&ArrayView1<V>
point_b
&ArrayView1<V>
point_a
&ArrayView1<V>
point_b
&ArrayView1<V>