Fix for simd
This commit is contained in:
parent
4fede94df5
commit
f82e421e2c
1 changed files with 7 additions and 0 deletions
|
@ -360,6 +360,13 @@ macro_rules! impl_vector_default {
|
||||||
$VectorN::new($($field),+)
|
$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> {
|
impl<S: NumCast + Copy> $VectorN<S> {
|
||||||
/// Component-wise casting to another type.
|
/// Component-wise casting to another type.
|
||||||
#[inline]
|
#[inline]
|
||||||
|
|
Loading…
Reference in a new issue