pub struct SecondaryHomotopy<A: PairAlgebra> {
pub source: Arc<FreeModule<A>>,
pub target: Arc<FreeModule<A>>,
pub shift_t: i32,
pub(crate) composites: OnceBiVec<Vec<SecondaryComposite<A>>>,
pub homotopies: FreeModuleHomomorphism<FreeModule<A>>,
hit_generator: bool,
}Fields§
§source: Arc<FreeModule<A>>§target: Arc<FreeModule<A>>§shift_t: i32output_t = input_t - shift_t
composites: OnceBiVec<Vec<SecondaryComposite<A>>>gen_deg -> gen_idx -> composite
homotopies: FreeModuleHomomorphism<FreeModule<A>>gen_deg -> gen_idx -> homotopy
hit_generator: boolImplementations§
Source§impl<A: PairAlgebra + Send + Sync> SecondaryHomotopy<A>
impl<A: PairAlgebra + Send + Sync> SecondaryHomotopy<A>
pub fn new( source: Arc<FreeModule<A>>, target: Arc<FreeModule<A>>, shift_t: i32, hit_generator: bool, ) -> Self
Sourcepub fn add_composite(
&self,
s: i32,
degree: i32,
maps: CompositeData<A>,
dir: &SaveDirectory,
)
pub fn add_composite( &self, s: i32, degree: i32, maps: CompositeData<A>, dir: &SaveDirectory, )
Add composites up to and including the specified degree
Sourcepub fn act(
&self,
result: FpSliceMut<'_>,
coeff: u32,
elt_degree: i32,
elt: FpSlice<'_>,
full: bool,
)
pub fn act( &self, result: FpSliceMut<'_>, coeff: u32, elt_degree: i32, elt: FpSlice<'_>, full: bool, )
Compute the image of an element in the source under the homotopy, writing the result in
result. It is assumed that the coefficients of generators are zero in op.
§Arguments
- full: Whether to include the action of the homotopy part as well
pub fn composite(&self, gen_deg: i32, gen_idx: usize) -> &SecondaryComposite<A>
Auto Trait Implementations§
impl<A> !Freeze for SecondaryHomotopy<A>
impl<A> RefUnwindSafe for SecondaryHomotopy<A>where
A: RefUnwindSafe,
impl<A> Send for SecondaryHomotopy<A>
impl<A> Sync for SecondaryHomotopy<A>
impl<A> Unpin for SecondaryHomotopy<A>
impl<A> !UnwindSafe for SecondaryHomotopy<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