pub struct ProjectiveSpace {
pub dim: usize,
}Expand description
Projective space P^n.
Fields§
§dim: usizeThe dimension n of the projective space P^n.
Implementations§
Source§impl ProjectiveSpace
impl ProjectiveSpace
Sourcepub fn projective_line() -> Self
pub fn projective_line() -> Self
The projective line P^1.
Sourcepub fn projective_plane() -> Self
pub fn projective_plane() -> Self
The projective plane P^2.
Sourcepub fn num_coordinates(&self) -> usize
pub fn num_coordinates(&self) -> usize
Number of homogeneous coordinates (dim + 1).
Sourcepub fn euler_characteristic(&self) -> i64
pub fn euler_characteristic(&self) -> i64
Euler characteristic of P^n: χ(P^n) = n + 1.
Sourcepub fn betti_numbers(&self) -> Vec<u64>
pub fn betti_numbers(&self) -> Vec<u64>
The Betti numbers of P^n: b_{2k} = 1 for 0 ≤ k ≤ n, all others 0.
Trait Implementations§
Source§impl Clone for ProjectiveSpace
impl Clone for ProjectiveSpace
Source§fn clone(&self) -> ProjectiveSpace
fn clone(&self) -> ProjectiveSpace
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 Debug for ProjectiveSpace
impl Debug for ProjectiveSpace
Source§impl Display for ProjectiveSpace
impl Display for ProjectiveSpace
Source§impl PartialEq for ProjectiveSpace
impl PartialEq for ProjectiveSpace
impl Eq for ProjectiveSpace
impl StructuralPartialEq for ProjectiveSpace
Auto Trait Implementations§
impl Freeze for ProjectiveSpace
impl RefUnwindSafe for ProjectiveSpace
impl Send for ProjectiveSpace
impl Sync for ProjectiveSpace
impl Unpin for ProjectiveSpace
impl UnsafeUnpin for ProjectiveSpace
impl UnwindSafe for ProjectiveSpace
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