This commit is contained in:
Richard Dodd 2018-04-29 17:04:49 +01:00
parent f8e92ed327
commit 2a7e2ebda3

View file

@ -409,6 +409,10 @@ macro_rules! impl_vector_default {
fn product(self) -> S where S: Mul<Output = S> {
fold_array!(mul, { $(self.$field),+ })
}
fn is_finite(&self) -> bool where S: BaseFloat {
$(self.$field.is_finite())&&+
}
}
impl<S: BaseNum> Zero for $VectorN<S> {