AdvancedComputation

Trait AdvancedComputation 

Source
pub trait AdvancedComputation {
    // Required methods
    fn evaluate_polynomial(&self, coeffs: &[Self], x: &Self) -> Self
       where Self: Sized;
    fn gcd_extended(&self, other: &Self) -> Self
       where Self: Sized;
}
Expand description

Advanced computational traits for future extensibility.

This trait provides hooks for advanced mathematical operations that may be implemented in future versions or by specialized backends.

Required Methods§

Source

fn evaluate_polynomial(&self, coeffs: &[Self], x: &Self) -> Self
where Self: Sized,

Compute result of a polynomial evaluation.

Evaluates the polynomial with coefficients coeffs at point x. This is useful for advanced cryptographic constructions.

Source

fn gcd_extended(&self, other: &Self) -> Self
where Self: Sized,

Compute the greatest common divisor of two elements.

Extended from the basic gcd to support more advanced use cases.

Implementors§