pub struct SecondaryComposite<A: PairAlgebra> {
target: Arc<FreeModule<A>>,
degree: i32,
composite: BiVec<Vec<A::Element>>,
}Expand description
A homotopy of a map A -> M of pair modules. We assume this map does not hit generators.
Fields§
§target: Arc<FreeModule<A>>§degree: i32§composite: BiVec<Vec<A::Element>>The component of the map on the R_B portion. gen_deg -> gen_idx -> coefficient
Implementations§
Source§impl<A: PairAlgebra> SecondaryComposite<A>
impl<A: PairAlgebra> SecondaryComposite<A>
pub fn algebra(&self) -> Arc<A>
pub fn new(target: Arc<FreeModule<A>>, degree: i32, hit_generator: bool) -> Self
pub fn to_bytes(&self, buffer: &mut impl Write) -> Result<()>
pub fn from_bytes( target: Arc<FreeModule<A>>, degree: i32, hit_generator: bool, buffer: &mut impl Read, ) -> Result<Self>
pub fn finalize(&mut self)
pub fn add_composite( &mut self, coeff: u32, gen_degree: i32, gen_idx: usize, d1: &FreeModuleHomomorphism<FreeModule<A>>, d0: &FreeModuleHomomorphism<FreeModule<A>>, )
pub fn act( &self, result: FpSliceMut<'_>, coeff: u32, op_degree: i32, op: FpSlice<'_>, )
Auto Trait Implementations§
impl<A> Freeze for SecondaryComposite<A>
impl<A> RefUnwindSafe for SecondaryComposite<A>
impl<A> Send for SecondaryComposite<A>
impl<A> Sync for SecondaryComposite<A>
impl<A> Unpin for SecondaryComposite<A>
impl<A> UnwindSafe for SecondaryComposite<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<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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