fn check_input(x: Vec<f64>){
        if x.len() != Self::D {
            panic!("A vector with size {} was used with a function of dimensionality {}.", x.len(), Self::D);
        }
    }
/// This function is used to check inputs
This function is used to check inputs
This function is used to check inputs
fn check_input(x: Vec<f64>){
        if x.len() != Self::D {
            panic!("A vector with size {} was used with a function of dimensionality {}.", x.len(), Self::D);
        }
    }
fn check_input ( x : Vec < f64 > ) { if x . len ( ) != Self :: D { panic ! ( " " x len ( ) Self D ) ; } }
This function is used to check inputs
This function is used to check inputs
x
Vec<f64>
x
Vec<f64>