Fix for simd

This commit is contained in:
Richard Dodd 2018-04-28 15:09:45 +01:00
parent 4fede94df5
commit f82e421e2c

View file

@ -360,6 +360,13 @@ macro_rules! impl_vector_default {
$VectorN::new($($field),+)
}
impl<S: BaseFloat> $VectorN<S> {
/// True if all entries in the vector are finite
pub fn is_finite(&self) -> bool {
$(self.$field.is_finite())&&+
}
}
impl<S: NumCast + Copy> $VectorN<S> {
/// Component-wise casting to another type.
#[inline]