pub struct PadicIntegralEmbedding { /* private fields */ }Expand description
Canonical fixed-cap embedding Z_p -> Q_p and checked integral retraction.
Implementations§
Source§impl PadicIntegralEmbedding
impl PadicIntegralEmbedding
Sourcepub fn new(target: PadicField) -> Self
pub fn new(target: PadicField) -> Self
Construct the canonical embedding attached to a fixed-cap field.
Sourcepub fn target(&self) -> &PadicField
pub fn target(&self) -> &PadicField
Fraction-field target context.
Sourcepub fn apply(
&self,
value: &PadicElement,
) -> Result<PadicElement, PadicEmbeddingError>
pub fn apply( &self, value: &PadicElement, ) -> Result<PadicElement, PadicEmbeddingError>
Embed an integral value after checking its exact source context.
Sourcepub fn retract(
&self,
value: &PadicElement,
) -> Result<PadicElement, PadicEmbeddingError>
pub fn retract( &self, value: &PadicElement, ) -> Result<PadicElement, PadicEmbeddingError>
Retract a field value after certifying nonnegative valuation.
Sourcepub fn retract_polynomial(
&self,
value: &Polynomial<PadicField>,
) -> Result<Polynomial<PadicRing>, CoefficientMappingError>
pub fn retract_polynomial( &self, value: &Polynomial<PadicField>, ) -> Result<Polynomial<PadicRing>, CoefficientMappingError>
Retract every coefficient of a polynomial after certifying integrality.
Sourcepub fn retract_power_series(
&self,
value: &PowerSeries<PadicField>,
) -> Result<PowerSeries<PadicRing>, CoefficientMappingError>
pub fn retract_power_series( &self, value: &PowerSeries<PadicField>, ) -> Result<PowerSeries<PadicRing>, CoefficientMappingError>
Retract every retained series coefficient after certifying integrality.
Sourcepub fn retract_vector(
&self,
value: &Vector<PadicField>,
) -> Result<Vector<PadicRing>, CoefficientMappingError>
pub fn retract_vector( &self, value: &Vector<PadicField>, ) -> Result<Vector<PadicRing>, CoefficientMappingError>
Retract every vector coefficient after certifying integrality.
Sourcepub fn retract_matrix(
&self,
value: &Matrix<PadicField>,
) -> Result<Matrix<PadicRing>, CoefficientMappingError>
pub fn retract_matrix( &self, value: &Matrix<PadicField>, ) -> Result<Matrix<PadicRing>, CoefficientMappingError>
Retract every matrix coefficient after certifying integrality.
Sourcepub fn verify(&self) -> Result<(), VerificationError>
pub fn verify(&self) -> Result<(), VerificationError>
Recheck that source and target have identical prime and precision identity.
Sourcepub fn to_json(&self) -> Result<String, NoetherError>
pub fn to_json(&self) -> Result<String, NoetherError>
Canonical JSON containing both endpoint contexts.
Sourcepub fn from_json(value: &str) -> Result<Self, NoetherError>
pub fn from_json(value: &str) -> Result<Self, NoetherError>
Deserialize and revalidate the embedding endpoints.
Trait Implementations§
Source§impl Clone for PadicIntegralEmbedding
impl Clone for PadicIntegralEmbedding
Source§fn clone(&self) -> PadicIntegralEmbedding
fn clone(&self) -> PadicIntegralEmbedding
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl CoefficientMap for PadicIntegralEmbedding
impl CoefficientMap for PadicIntegralEmbedding
Source§type Target = PadicField
type Target = PadicField
Target coefficient context.
Source§type Error = PadicEmbeddingError
type Error = PadicEmbeddingError
Scalar application failure.
Source§fn apply(&self, value: &PadicElement) -> Result<PadicElement, Self::Error>
fn apply(&self, value: &PadicElement) -> Result<PadicElement, Self::Error>
Apply the map after checking that
value belongs to the exact source.Source§impl Debug for PadicIntegralEmbedding
impl Debug for PadicIntegralEmbedding
Source§impl Display for PadicIntegralEmbedding
impl Display for PadicIntegralEmbedding
Source§impl PartialEq for PadicIntegralEmbedding
impl PartialEq for PadicIntegralEmbedding
Source§impl SemanticType for PadicIntegralEmbedding
impl SemanticType for PadicIntegralEmbedding
Source§const TYPE_ID: &'static str = "noether/numthy/PadicIntegralEmbedding@1"
const TYPE_ID: &'static str = "noether/numthy/PadicIntegralEmbedding@1"
Versioned, language-neutral semantic identity.
Source§fn canonical_bytes(&self) -> Result<Vec<u8>, NoetherError>
fn canonical_bytes(&self) -> Result<Vec<u8>, NoetherError>
Serialize without backend- or language-specific identity.
Source§fn describe() -> &'static TypeDescription
fn describe() -> &'static TypeDescription
Return static discovery metadata for the type.
impl Eq for PadicIntegralEmbedding
impl StructuralPartialEq for PadicIntegralEmbedding
Auto Trait Implementations§
impl Freeze for PadicIntegralEmbedding
impl RefUnwindSafe for PadicIntegralEmbedding
impl Send for PadicIntegralEmbedding
impl Sync for PadicIntegralEmbedding
impl Unpin for PadicIntegralEmbedding
impl UnwindSafe for PadicIntegralEmbedding
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more