pub struct MultivariateGcdConfig {
pub var_selection: VarSelectionStrategy,
pub use_primitive_part: bool,
pub max_recursion_depth: usize,
}Expand description
Configuration for multivariate GCD.
Fields§
§var_selection: VarSelectionStrategyMain variable selection strategy.
use_primitive_part: boolReduce every intermediate pseudo-remainder to its primitive part.
This is the difference between a primitive PRS and a plain (Euclidean) pseudo-remainder sequence: it costs one content GCD per step but keeps the coefficients from growing exponentially. Turning it off does not change the answer – the content/primitive split of the inputs, and of the final PRS element, is required for correctness and is always performed.
max_recursion_depth: usizeMaximum recursion depth.
Each level of recursion eliminates one variable (see the module
documentation), so a value of n supports inputs in up to n
distinct variables. Beyond that the engine gives up and returns the
trivial common divisor 1, recording the fact in
MultivariateGcdStats::incomplete.
Trait Implementations§
Source§impl Clone for MultivariateGcdConfig
impl Clone for MultivariateGcdConfig
Source§fn clone(&self) -> MultivariateGcdConfig
fn clone(&self) -> MultivariateGcdConfig
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more