pub struct FinitelyPresentedModule<A: Algebra> {
name: String,
min_degree: i32,
generators: Arc<FreeModule<A>>,
relations: Arc<FreeModule<A>>,
map: Arc<FreeModuleHomomorphism<FreeModule<A>>>,
index_table: OnceBiVec<FPMIndexTable>,
}Fields§
§name: String§min_degree: i32§generators: Arc<FreeModule<A>>§relations: Arc<FreeModule<A>>§map: Arc<FreeModuleHomomorphism<FreeModule<A>>>§index_table: OnceBiVec<FPMIndexTable>Implementations§
Source§impl<A: Algebra> FinitelyPresentedModule<A>
impl<A: Algebra> FinitelyPresentedModule<A>
pub fn new(algebra: Arc<A>, name: String, min_degree: i32) -> Self
pub fn generators(&self) -> Arc<FreeModule<A>>
pub fn add_generators(&mut self, degree: i32, gen_names: Vec<String>)
pub fn add_relations(&mut self, degree: i32, relations: Vec<FpVector>)
pub fn gen_idx_to_fp_idx(&self, degree: i32, idx: usize) -> isize
pub fn fp_idx_to_gen_idx(&self, degree: i32, idx: usize) -> usize
Trait Implementations§
Source§impl<A: Algebra> Display for FinitelyPresentedModule<A>
impl<A: Algebra> Display for FinitelyPresentedModule<A>
Source§impl<A: Algebra> Module for FinitelyPresentedModule<A>
impl<A: Algebra> Module for FinitelyPresentedModule<A>
type Algebra = A
Source§fn min_degree(&self) -> i32
fn min_degree(&self) -> i32
The minimum degree of the module, which is required to be bounded below
Source§fn max_computed_degree(&self) -> i32
fn max_computed_degree(&self) -> i32
The maximum
t for which the module is fully defined at t. See Module documentation
for more details.Source§fn compute_basis(&self, degree: i32)
fn compute_basis(&self, degree: i32)
Compute internal data of the module so that we can query information up to degree
degree.
This should be run by the user whenever they want to query such information. Read morefn act_on_basis( &self, result: FpSliceMut<'_>, coeff: u32, op_degree: i32, op_index: usize, mod_degree: i32, mod_index: usize, )
Source§fn basis_element_to_string(&self, degree: i32, idx: usize) -> String
fn basis_element_to_string(&self, degree: i32, idx: usize) -> String
The name of a basis element. This is useful for debugging and printing results.
Source§fn max_generator_degree(&self) -> Option<i32>
fn max_generator_degree(&self) -> Option<i32>
Maximum degree of a generator under the Steenrod action. Every element in higher degree
must be obtainable from applying a Steenrod action to a lower degree element.
Source§fn prime(&self) -> ValidPrime
fn prime(&self) -> ValidPrime
The prime the module is over, which should be equal to the prime of the algebra.
Source§fn max_degree(&self) -> Option<i32>
fn max_degree(&self) -> Option<i32>
max_degree is the a degree such that if t > max_degree, then self.dimension(t) = 0.fn total_dimension(&self) -> usize
Source§fn act(
&self,
result: FpSliceMut<'_>,
coeff: u32,
op_degree: i32,
op_index: usize,
input_degree: i32,
input: FpSlice<'_>,
)
fn act( &self, result: FpSliceMut<'_>, coeff: u32, op_degree: i32, op_index: usize, input_degree: i32, input: FpSlice<'_>, )
The length of
input need not be equal to the dimension of the module in said degree.
Missing entries are interpreted to be 0, while extra entries must be zero. Read morefn act_by_element( &self, result: FpSliceMut<'_>, coeff: u32, op_degree: i32, op: FpSlice<'_>, input_degree: i32, input: FpSlice<'_>, )
fn act_by_element_on_basis( &self, result: FpSliceMut<'_>, coeff: u32, op_degree: i32, op: FpSlice<'_>, input_degree: i32, input_index: usize, )
Source§fn element_to_string(&self, degree: i32, element: FpSlice<'_>) -> String
fn element_to_string(&self, degree: i32, element: FpSlice<'_>) -> String
Gives the name of an element. The default implementation is derived from
Module::basis_element_to_string in the obvious way.Source§impl<A: Algebra> PartialEq for FinitelyPresentedModule<A>
impl<A: Algebra> PartialEq for FinitelyPresentedModule<A>
Source§impl<A: Algebra> ZeroModule for FinitelyPresentedModule<A>
impl<A: Algebra> ZeroModule for FinitelyPresentedModule<A>
fn zero_module(algebra: Arc<A>, min_degree: i32) -> Self
impl<A: Algebra> Eq for FinitelyPresentedModule<A>
Auto Trait Implementations§
impl<A> !Freeze for FinitelyPresentedModule<A>
impl<A> RefUnwindSafe for FinitelyPresentedModule<A>where
A: RefUnwindSafe,
impl<A> Send for FinitelyPresentedModule<A>
impl<A> Sync for FinitelyPresentedModule<A>
impl<A> Unpin for FinitelyPresentedModule<A>
impl<A> !UnwindSafe for FinitelyPresentedModule<A>
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
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.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