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§
Sourcefn evaluate_polynomial(&self, coeffs: &[Self], x: &Self) -> Selfwhere
Self: Sized,
fn evaluate_polynomial(&self, coeffs: &[Self], x: &Self) -> Selfwhere
Self: Sized,
Compute result of a polynomial evaluation.
Evaluates the polynomial with coefficients coeffs at point x.
This is useful for advanced cryptographic constructions.
Sourcefn gcd_extended(&self, other: &Self) -> Selfwhere
Self: Sized,
fn gcd_extended(&self, other: &Self) -> Selfwhere
Self: Sized,
Compute the greatest common divisor of two elements.
Extended from the basic gcd to support more advanced use cases.