Resolution

Struct Resolution 

Source
pub struct Resolution<M: ZeroModule<Algebra = MilnorAlgebra>> {
    lock: Mutex<()>,
    name: String,
    max_degree: i32,
    modules: OnceBiVec<Arc<FreeModule<MilnorAlgebra>>>,
    zero_module: Arc<FreeModule<MilnorAlgebra>>,
    differentials: OnceBiVec<Arc<FreeModuleHomomorphism<FreeModule<MilnorAlgebra>>>>,
    target: Arc<FiniteChainComplex<M>>,
    chain_maps: OnceBiVec<Arc<FreeModuleHomomorphism<M>>>,
    save_dir: SaveDirectory,
}
Expand description

A resolution of S_2 using Nassau’s algorithm.

This aims to have an API similar to that of resolution::Resolution. From an API point of view, the main difference between the two is that this is a chain complex over MilnorAlgebra over SteenrodAlgebra.

Fields§

§lock: Mutex<()>§name: String§max_degree: i32§modules: OnceBiVec<Arc<FreeModule<MilnorAlgebra>>>§zero_module: Arc<FreeModule<MilnorAlgebra>>§differentials: OnceBiVec<Arc<FreeModuleHomomorphism<FreeModule<MilnorAlgebra>>>>§target: Arc<FiniteChainComplex<M>>§chain_maps: OnceBiVec<Arc<FreeModuleHomomorphism<M>>>§save_dir: SaveDirectory

Implementations§

Source§

impl<M: ZeroModule<Algebra = MilnorAlgebra>> Resolution<M>

Source

pub fn name(&self) -> &str

Source

pub fn set_name(&mut self, name: String)

Source

pub fn new(module: Arc<M>) -> Self

Source

pub fn new_with_save( module: Arc<M>, save_dir: impl Into<SaveDirectory>, ) -> Result<Self>

Source

fn add_generators(&self, b: Bidegree, num_new_gens: usize)

Source

fn extend_through_degree(&self, max_s: i32)

This function prepares the Resolution object to perform computations up to the specified s degree. It does not perform any computations by itself. It simply lengthens the OnceVecs modules, chain_maps, etc. to the right length.

Source

fn write_qi( f: &mut Option<impl Write>, scratch: &mut FpVector, signature: &[PPartEntry], next_mask: &[usize], full_matrix: &Matrix, masked_matrix: &AugmentedMatrix<2>, ) -> Result<()>

Source

fn write_differential( &self, b: Bidegree, num_new_gens: usize, target_dim: usize, ) -> Result<()>

Source

fn step_resolution_with_subalgebra( &self, b: Bidegree, subalgebra: MilnorSubalgebra, ) -> Result<()>

Source

fn step0(&self, t: i32)

Step resolution for s = 0

Source

fn step1(&self, t: i32) -> Result<()>

Step resolution for s = 1

Source

fn step_resolution_with_result(&self, b: Bidegree) -> Result<()>

Source

fn step_resolution(&self, b: Bidegree)

Source

pub fn compute_through_stem(&self, max: Bidegree)

This function resolves up till a fixed stem instead of a fixed t.

Trait Implementations§

Source§

impl<M: ZeroModule<Algebra = MilnorAlgebra>> AugmentedChainComplex for Resolution<M>

Source§

impl<M: ZeroModule<Algebra = MilnorAlgebra>> ChainComplex for Resolution<M>

Source§

type Algebra = MilnorAlgebra

Source§

type Homomorphism = MuFreeModuleHomomorphism<false, MuFreeModule<false, <Resolution<M> as ChainComplex>::Algebra>>

Source§

type Module = MuFreeModule<false, <Resolution<M> as ChainComplex>::Algebra>

Source§

fn prime(&self) -> ValidPrime

Source§

fn algebra(&self) -> Arc<Self::Algebra>

Source§

fn module(&self, s: i32) -> Arc<Self::Module>

Source§

fn zero_module(&self) -> Arc<Self::Module>

Source§

fn min_degree(&self) -> i32

Source§

fn has_computed_bidegree(&self, b: Bidegree) -> bool

If the complex has been computed at bidegree (s, t). This means the module has been computed at (s, t), and so has the differential at (s, t). In the case of a free module, the target of the differential, namely the bidegree (s - 1, t), need not be computed, as long as all the generators hit by the differential have already been computed.
Source§

fn differential(&self, s: i32) -> Arc<Self::Homomorphism>

This returns the differential starting from the sth module.
Source§

fn compute_through_bidegree(&self, max: Bidegree)

Ensure all bidegrees less than or equal to (s, t) have been computed
Source§

fn next_homological_degree(&self) -> i32

The first s such that self.module(s) is not defined.
Source§

fn save_dir(&self) -> &SaveDirectory

A directory used to save information about the chain complex.
Source§

fn apply_quasi_inverse<T, S>( &self, results: &mut [T], b: Bidegree, inputs: &[S], ) -> bool
where for<'a> &'a mut T: Into<FpSliceMut<'a>>, for<'a> &'a S: Into<FpSlice<'a>>,

Apply the quasi-inverse of the (s, t)th differential to the list of inputs and results. This defaults to applying self.differentials(s).quasi_inverse(t), but in some cases the quasi-inverse might be stored separately on disk. Read more
Source§

fn iter_stem(&self) -> StemIterator<'_, Self>

Iterate through all defined bidegrees in increasing order of stem.
Source§

fn save_file(&self, kind: SaveKind, b: Bidegree) -> SaveFile<Self::Algebra>

Get the save file of a bidegree

Auto Trait Implementations§

§

impl<M> !Freeze for Resolution<M>

§

impl<M> RefUnwindSafe for Resolution<M>
where M: RefUnwindSafe,

§

impl<M> Send for Resolution<M>

§

impl<M> Sync for Resolution<M>

§

impl<M> Unpin for Resolution<M>

§

impl<M> !UnwindSafe for Resolution<M>

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T> Instrument for T

§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoEither for T

Source§

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 more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

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
§

impl<T> Pointable for T

§

const ALIGN: usize

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

§

fn vzip(self) -> V

§

impl<T> WithSubscriber for T

§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a [WithDispatch] wrapper. Read more