pub type AdelicInt = Adelic<RnsInt>;Expand description
Integer instantiation.
Aliased Type§
pub struct AdelicInt { /* private fields */ }Implementations§
Source§impl AdelicInt
impl AdelicInt
Sourcepub fn from_bigint(n: &BigInt, basis: Basis) -> Self
pub fn from_bigint(n: &BigInt, basis: Basis) -> Self
From an exact BigInt over basis (the infinite place pins the value).
Sourcepub fn try_exact(&self) -> Result<BigInt, RangeError>
pub fn try_exact(&self) -> Result<BigInt, RangeError>
The exact integer, or RangeError::ReconstructionFailed if the finite
reconstruction disagrees with the infinite place (basis too small).