pub struct AffineSpace<R: CommutativeRing> { /* private fields */ }Expand description
Affine space with one explicit base and coordinate-ring context.
Implementations§
Source§impl<R: CommutativeRing + Display> AffineSpace<R>
impl<R: CommutativeRing + Display> AffineSpace<R>
Sourcepub fn base_change<M>(
&self,
map: &M,
) -> Result<AffineSpace<M::Target>, BaseChangeError>where
M: CoefficientMap<Source = R>,
pub fn base_change<M>(
&self,
map: &M,
) -> Result<AffineSpace<M::Target>, BaseChangeError>where
M: CoefficientMap<Source = R>,
Extend the base while preserving the exact affine coordinate-ring presentation.
Source§impl<R: CommutativeRing> AffineSpace<R>
impl<R: CommutativeRing> AffineSpace<R>
Sourcepub fn new(base: R, dimension: usize) -> Result<Self, SchemeError>
pub fn new(base: R, dimension: usize) -> Result<Self, SchemeError>
Construct standard affine dimension-space with coordinates x1, ....
Sourcepub fn with_names<I, S>(
base: R,
dimension: usize,
names: I,
) -> Result<Self, SchemeError>
pub fn with_names<I, S>( base: R, dimension: usize, names: I, ) -> Result<Self, SchemeError>
Construct affine space with explicit ordered coordinate names.
Sourcepub fn coordinates(&self) -> &[String]
pub fn coordinates(&self) -> &[String]
Ordered coordinate names.
Sourcepub fn coordinate_ring(&self) -> &PolynomialRing<R>
pub fn coordinate_ring(&self) -> &PolynomialRing<R>
Exact polynomial coordinate ring.
Source§impl AffineSpace<RationalField>
impl AffineSpace<RationalField>
Sourcepub fn closed_subscheme(
&self,
ideal: Ideal<PolynomialRing<RationalField>>,
) -> Result<Scheme<RationalField>, SchemeError>
pub fn closed_subscheme( &self, ideal: Ideal<PolynomialRing<RationalField>>, ) -> Result<Scheme<RationalField>, SchemeError>
Construct a closed subscheme from an ideal in this coordinate ring.
Sourcepub fn to_json(&self) -> Result<String, NoetherError>
pub fn to_json(&self) -> Result<String, NoetherError>
Serialize this ambient context.
Sourcepub fn from_json(value: &str) -> Result<Self, NoetherError>
pub fn from_json(value: &str) -> Result<Self, NoetherError>
Restore and validate this ambient context.
Source§impl AffineSpace<FiniteField>
impl AffineSpace<FiniteField>
Sourcepub fn closed_subscheme(
&self,
ideal: Ideal<PolynomialRing<FiniteField>>,
) -> Result<Scheme<FiniteField>, SchemeError>
pub fn closed_subscheme( &self, ideal: Ideal<PolynomialRing<FiniteField>>, ) -> Result<Scheme<FiniteField>, SchemeError>
Construct a closed subscheme from an ideal in this coordinate ring.
Sourcepub fn to_json(&self) -> Result<String, NoetherError>
pub fn to_json(&self) -> Result<String, NoetherError>
Serialize this ambient context.
Sourcepub fn from_json(value: &str) -> Result<Self, NoetherError>
pub fn from_json(value: &str) -> Result<Self, NoetherError>
Restore and validate this ambient context.
Trait Implementations§
Source§impl<R: Clone + CommutativeRing> Clone for AffineSpace<R>
impl<R: Clone + CommutativeRing> Clone for AffineSpace<R>
Source§fn clone(&self) -> AffineSpace<R>
fn clone(&self) -> AffineSpace<R>
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<R> Debug for AffineSpace<R>where
R: CommutativeRing,
impl<R> Debug for AffineSpace<R>where
R: CommutativeRing,
Source§impl<'de> Deserialize<'de> for AffineSpace<FiniteField>
impl<'de> Deserialize<'de> for AffineSpace<FiniteField>
Source§fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl<'de> Deserialize<'de> for AffineSpace<RationalField>
impl<'de> Deserialize<'de> for AffineSpace<RationalField>
Source§fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl<R> Display for AffineSpace<R>where
R: CommutativeRing,
impl<R> Display for AffineSpace<R>where
R: CommutativeRing,
Source§impl<R: PartialEq + CommutativeRing> PartialEq for AffineSpace<R>
impl<R: PartialEq + CommutativeRing> PartialEq for AffineSpace<R>
Source§impl SemanticType for AffineSpace<FiniteField>
impl SemanticType for AffineSpace<FiniteField>
Source§const TYPE_ID: &'static str = "noether/commalg/AffineSpace@1"
const TYPE_ID: &'static str = "noether/commalg/AffineSpace@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.
Source§impl SemanticType for AffineSpace<RationalField>
impl SemanticType for AffineSpace<RationalField>
Source§const TYPE_ID: &'static str = "noether/commalg/AffineSpace@1"
const TYPE_ID: &'static str = "noether/commalg/AffineSpace@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.
Source§impl<R> Serialize for AffineSpace<R>where
R: CommutativeRing + Serialize,
impl<R> Serialize for AffineSpace<R>where
R: CommutativeRing + Serialize,
impl<R: Eq + CommutativeRing> Eq for AffineSpace<R>
impl<R: CommutativeRing> StructuralPartialEq for AffineSpace<R>
Auto Trait Implementations§
impl<R> Freeze for AffineSpace<R>where
R: Freeze,
impl<R> RefUnwindSafe for AffineSpace<R>where
R: RefUnwindSafe,
impl<R> Send for AffineSpace<R>
impl<R> Sync for AffineSpace<R>
impl<R> Unpin for AffineSpace<R>where
R: Unpin,
impl<R> UnwindSafe for AffineSpace<R>where
R: UnwindSafe,
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