pub fn is_outside(&self, x: &[f64]) -> bool {
        assert_eq!(x.len(), self.ndim);
        for i in 0..self.ndim {
            if x[i] < self.min[i] || x[i] > self.max[i] {
                return true;
            }
        }
        return false;
    }
/// Returns whether a point is outside the grid or not (thus we cannot use insert or find)
///
/// # Panics
///
/// This function requires that `x.len() = ndim`, otherwise a panic occurs.
Returns whether a point is outside the grid or not (thus we cannot use insert or find)
Returns whether a point is outside the grid or not ( thus we cannot use insert or find )
pub fn is_outside(&self, x: &[f64]) -> bool {
        assert_eq!(x.len(), self.ndim);
        for i in 0..self.ndim {
            if x[i] < self.min[i] || x[i] > self.max[i] {
                return true;
            }
        }
        return false;
    }
pub fn is_outside ( & self , x : & [ f64 ] ) -> bool { assert_eq ! ( x len ( ) self ndim ) ; for i in 0 .. self . ndim { if x [ i ] < self . min [ i ] || x [ i ] > self . max [ i ] { return true ; } } return false ; }
Returns whether a point is outside the grid or not (thus we cannot use insert or find)
Returns whether a point is outside the grid or not ( thus we cannot use insert or find )
&self
x
&[f64]
&self
x
&[f64]
panics
This function requires that `x.len() = ndim`, otherwise a panic occurs.
This function requires that ` x . len () = ndim ` otherwise a panic occurs .