INNER CODE UNIT · Rust

product

pluto/ronkathon · src/algebra/field/binary_towers/mod.rs:119

  fn product<I: Iterator<Item = Self>>(iter: I) -> Self {
    iter.reduce(|x, y| x * y).unwrap_or(Self::ONE)
  }
}

impl Div for BinaryField {
  type Output = Self;

  #[allow(clippy::suspicious_arithmetic_impl)]
  fn div(self, rhs: Self) -> Self::Output { self * rhs.inverse().expect("divide by zero") }
}

impl DivAssign for BinaryField {
  fn div_assign(&mut self, rhs: Self) { *self = *self / rhs; }
}

impl Rem for BinaryField {
  type Output = Self;

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…