pub fn has_integer_support<D: ndarray::Dimension>(v: &Array<f64, D>) -> bool {
    for x in v.iter() {
        if x.fract() != 0. {
            return false;
        }
    }
    true
}
/// Returns true if all the elements of the array
/// can be converted into integers without loss.
///
/// # Examples
///
/// ```
/// # extern crate ndarray;
/// # extern crate fbleau;
/// # use ndarray::prelude::*;
/// # use fbleau::utils::has_integer_support;
/// assert!(has_integer_support(&array![[3.], [6.], [0.], [-4.]]));
/// assert!(has_integer_support(&array![3., 6., 0., -4.]));
/// assert!(!has_integer_support(&array![2., 5.5, 3.]));
/// ```
Returns true if all the elements of the array
can be converted into integers without loss.
Returns true if all the elements of the array can be converted into integers without loss .
pub fn has_integer_support<D: ndarray::Dimension>(v: &Array<f64, D>) -> bool {
    for x in v.iter() {
        if x.fract() != 0. {
            return false;
        }
    }
    true
}
pub fn has_integer_support < D : ndarray :: Dimension > ( v : & Array < f64 , D > ) -> bool { for x in v . iter ( ) { if x . fract ( ) != 0. { return false ; } } true }
Returns true if all the elements of the array
can be converted into integers without loss.
Returns true if all the elements of the array can be converted into integers without loss .
v
&Array<f64, D>
v
&Array<f64, D>
examples
None
extern crate ndarray;
None
extern crate fbleau;
None
use ndarray::prelude::*;
None
use fbleau::utils::has_integer_support;
None