mirror of
https://github.com/logos-storage/plonky2.git
synced 2026-01-14 03:33:11 +00:00
Tweaks to CrandallField::product
This commit is contained in:
parent
3674ceb571
commit
e50d79a347
@ -431,8 +431,9 @@ impl MulAssign for CrandallField {
|
||||
}
|
||||
|
||||
impl Product for CrandallField {
|
||||
#[inline]
|
||||
fn product<I: Iterator<Item = Self>>(iter: I) -> Self {
|
||||
iter.fold(Self::ONE, |acc, x| acc * x)
|
||||
iter.reduce(|acc, x| acc * x).unwrap_or(Self::ONE)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user