Function qm31_packed_reduced_inv

Source
pub fn qm31_packed_reduced_inv(felt: Felt252) -> Result<Felt252, MathError>
Expand description

QM31 utility function, used specifically for Stwo. QM31 operations are to be relocated into https://github.com/lambdaclass/lambdaworks. Computes the inverse of a QM31 element in reduced form. Returns an error if the denominator is zero or either operand is not reduced.