Skip to content

Commit

Permalink
fix comment
Browse files Browse the repository at this point in the history
  • Loading branch information
PatStiles committed Oct 16, 2023
1 parent 1c76409 commit 016dc74
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion math/src/field/fields/mersenne31/extension.rs
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,6 @@ impl IsField for Mersenne31Complex {
}

/// Returns the multiplicative inverse of `a`
/// This uses the equality `(a0 + a1 * t) * (a0 - a1 * t) = a0.pow(2) - a1.pow(2) * Q::residue()`
fn inv(a: &Self::BaseType) -> Result<Self::BaseType, FieldError> {
let inv_norm = (a[0].pow(2_u64) + a[1].pow(2_u64)).inv()?;
Ok([a[0] * inv_norm, -a[1] * inv_norm])
Expand Down

0 comments on commit 016dc74

Please sign in to comment.