pub struct Field {
prime: ValidPrime,
}Expand description
Fields§
§prime: ValidPrimeImplementations§
Trait Implementations§
Source§impl Algebra for Field
impl Algebra for Field
Source§fn prime(&self) -> ValidPrime
fn prime(&self) -> ValidPrime
Returns the prime the algebra is over.
Source§fn compute_basis(&self, _degree: i32)
fn compute_basis(&self, _degree: i32)
Computes basis elements up to and including
degree. Read moreSource§fn dimension(&self, degree: i32) -> usize
fn dimension(&self, degree: i32) -> usize
Returns the dimension of the algebra in degree
degree.Source§fn multiply_basis_elements(
&self,
result: FpSliceMut<'_>,
coeff: u32,
_r_degree: i32,
_r_idx: usize,
_s_degree: i32,
_s_idx: usize,
)
fn multiply_basis_elements( &self, result: FpSliceMut<'_>, coeff: u32, _r_degree: i32, _r_idx: usize, _s_degree: i32, _s_idx: usize, )
Source§fn default_filtration_one_products(&self) -> Vec<(String, i32, usize)>
fn default_filtration_one_products(&self) -> Vec<(String, i32, usize)>
Returns a list of filtration-one elements in $Ext(k, k)$. Read more
Source§fn basis_element_to_string(&self, degree: i32, _idx: usize) -> String
fn basis_element_to_string(&self, degree: i32, _idx: usize) -> String
Converts a basis element into a string for display.
Source§fn element_to_string(&self, degree: i32, element: FpSlice<'_>) -> String
fn element_to_string(&self, degree: i32, element: FpSlice<'_>) -> String
Converts a general element into a string for display.
Source§fn basis_element_from_string(&self, _elt: &str) -> Option<(i32, usize)>
fn basis_element_from_string(&self, _elt: &str) -> Option<(i32, usize)>
Converts a string to a basis element. This must be a one-sided inverse inverse to
both basis_element_to_string and generator_to_string (if
GeneratedAlgebra is
implemented). Read moreSource§fn prefix(&self) -> &str
fn prefix(&self) -> &str
A name for the algebra to use in serialization operations. This defaults to “” for algebras
that don’t care about this problem.
Source§fn magic(&self) -> u32
fn magic(&self) -> u32
A magic constant used to identify the algebra in save files. When working with the
Milnor algebra, it is easy to forget to specify the algebra and load Milnor save files
with the Adem basis. If we somehow manage to resume computation, this can have
disasterous consequences. So we store the magic in the save files. Read more
Source§fn multiply_basis_element_by_element(
&self,
result: FpSliceMut<'_>,
coeff: u32,
r_degree: i32,
r_idx: usize,
s_degree: i32,
s: FpSlice<'_>,
)
fn multiply_basis_element_by_element( &self, result: FpSliceMut<'_>, coeff: u32, r_degree: i32, r_idx: usize, s_degree: i32, s: FpSlice<'_>, )
Computes the product
r * s of a basis element r and a general element s, and adds the
result to result. Read moreSource§fn multiply_element_by_basis_element(
&self,
result: FpSliceMut<'_>,
coeff: u32,
r_degree: i32,
r: FpSlice<'_>,
s_degree: i32,
s_idx: usize,
)
fn multiply_element_by_basis_element( &self, result: FpSliceMut<'_>, coeff: u32, r_degree: i32, r: FpSlice<'_>, s_degree: i32, s_idx: usize, )
Computes the product
r * s of a general element r and a basis element s, and adds the
result to result. Read moreSource§fn multiply_element_by_element(
&self,
result: FpSliceMut<'_>,
coeff: u32,
r_degree: i32,
r: FpSlice<'_>,
s_degree: i32,
s: FpSlice<'_>,
)
fn multiply_element_by_element( &self, result: FpSliceMut<'_>, coeff: u32, r_degree: i32, r: FpSlice<'_>, s_degree: i32, s: FpSlice<'_>, )
Auto Trait Implementations§
impl Freeze for Field
impl RefUnwindSafe for Field
impl Send for Field
impl Sync for Field
impl Unpin for Field
impl UnwindSafe for Field
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> 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