INNER CODE UNIT · Rust

div

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

  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;

  fn rem(self, rhs: Self) -> Self::Output { self - (self / rhs) * rhs }
}

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…