pub struct HilbertFunction {
pub values: Vec<usize>,
}Expand description
Hilbert function H(I, t) = dim_k(R/I)_t for a homogeneous ideal I.
Fields§
§values: Vec<usize>Precomputed values: H(I, 0), H(I, 1), …, H(I, max_degree).
Implementations§
Source§impl HilbertFunction
impl HilbertFunction
Sourcepub fn compute(rgb: &ReducedGroebnerBasis, max_degree: usize) -> Self
pub fn compute(rgb: &ReducedGroebnerBasis, max_degree: usize) -> Self
Compute the Hilbert function from a reduced Gröbner basis.
Uses the combinatorial formula: H(I, t) = #{monomials of degree t} − #{standard monomials of degree t in LT(I)}.
Sourcepub fn euler_characteristic(&self) -> i64
pub fn euler_characteristic(&self) -> i64
Compute the Euler characteristic ∑_t (-1)^t H(I, t) (truncated to stored values).
Trait Implementations§
Source§impl Clone for HilbertFunction
impl Clone for HilbertFunction
Source§fn clone(&self) -> HilbertFunction
fn clone(&self) -> HilbertFunction
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 HilbertFunction
impl RefUnwindSafe for HilbertFunction
impl Send for HilbertFunction
impl Sync for HilbertFunction
impl Unpin for HilbertFunction
impl UnsafeUnpin for HilbertFunction
impl UnwindSafe for HilbertFunction
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