pub struct ProjectiveVariety {
pub name: String,
pub ambient_dim: usize,
pub degree: usize,
pub is_smooth: bool,
pub is_irreducible: bool,
}Expand description
Projective variety data.
Fields§
§name: String§ambient_dim: usize§degree: usize§is_smooth: bool§is_irreducible: boolImplementations§
Source§impl ProjectiveVariety
impl ProjectiveVariety
Sourcepub fn projective_space(n: usize) -> Self
pub fn projective_space(n: usize) -> Self
Projective space P^n.
Sourcepub fn hypersurface(n: usize, d: usize) -> Self
pub fn hypersurface(n: usize, d: usize) -> Self
Smooth hypersurface of degree d in P^n.
Sourcepub fn expected_dim(&self) -> usize
pub fn expected_dim(&self) -> usize
Dimension (ambient - 1 for hypersurface, etc.).
Sourcepub fn bezout_bound(&self, other_degree: usize) -> usize
pub fn bezout_bound(&self, other_degree: usize) -> usize
Bezout’s theorem: intersection number bound.
Trait Implementations§
Source§impl Clone for ProjectiveVariety
impl Clone for ProjectiveVariety
Source§fn clone(&self) -> ProjectiveVariety
fn clone(&self) -> ProjectiveVariety
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 moreAuto Trait Implementations§
impl Freeze for ProjectiveVariety
impl RefUnwindSafe for ProjectiveVariety
impl Send for ProjectiveVariety
impl Sync for ProjectiveVariety
impl Unpin for ProjectiveVariety
impl UnsafeUnpin for ProjectiveVariety
impl UnwindSafe for ProjectiveVariety
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