[−][src]Function fbleau::utils::has_integer_support
pub fn has_integer_support<D: Dimension>(v: &Array<f64, D>) -> bool
Returns true if all the elements of the array can be converted into integers without loss.
Examples
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.]));