HomPullback

Struct HomPullback 

Source
pub struct HomPullback<M: Module> {
    source: Arc<HomModule<M>>,
    target: Arc<HomModule<M>>,
    map: Arc<FreeModuleHomomorphism<FreeModule<M::Algebra>>>,
    images: OnceBiVec<Subspace>,
    kernels: OnceBiVec<Subspace>,
    quasi_inverses: OnceBiVec<QuasiInverse>,
}
Expand description

Given a map $\mathtt{map}: A \to B$ and hom modules $\mathtt{source} = \Hom(B, X)$, $\mathtt{target} = \Hom(A, X)$, produce the induced pullback map $\Hom(B, X) \to \Hom(A, X)$.

Fields§

§source: Arc<HomModule<M>>§target: Arc<HomModule<M>>§map: Arc<FreeModuleHomomorphism<FreeModule<M::Algebra>>>§images: OnceBiVec<Subspace>§kernels: OnceBiVec<Subspace>§quasi_inverses: OnceBiVec<QuasiInverse>

Implementations§

Source§

impl<M: Module> HomPullback<M>

Source

pub fn new( source: Arc<HomModule<M>>, target: Arc<HomModule<M>>, map: Arc<FreeModuleHomomorphism<FreeModule<M::Algebra>>>, ) -> Self

Trait Implementations§

Source§

impl<M: Module> ModuleHomomorphism for HomPullback<M>

Source§

type Source = HomModule<M>

Source§

type Target = HomModule<M>

Source§

fn source(&self) -> Arc<Self::Source>

Source§

fn target(&self) -> Arc<Self::Target>

Source§

fn degree_shift(&self) -> i32

Source§

fn min_degree(&self) -> i32

Source§

fn apply_to_basis_element( &self, result: FpSliceMut<'_>, coeff: u32, fn_degree: i32, fn_idx: usize, )

Calling this function when input_idx < source().dimension(input_degree) results in undefined behaviour. Implementations are encouraged to panic when this happens (this is usually the case because of out-of-bounds errors.
Source§

fn compute_auxiliary_data_through_degree(&self, degree: i32)

Source§

fn quasi_inverse(&self, degree: i32) -> Option<&QuasiInverse>

Source§

fn kernel(&self, degree: i32) -> Option<&Subspace>

Source§

fn image(&self, degree: i32) -> Option<&Subspace>

Source§

fn apply( &self, result: FpSliceMut<'_>, coeff: u32, input_degree: i32, input: FpSlice<'_>, )

Source§

fn prime(&self) -> ValidPrime

Source§

fn auxiliary_data(&self, degree: i32) -> (Subspace, Subspace, QuasiInverse)

Compute the auxiliary data associated to the homomorphism at input degree degree. Returns it in the order image, kernel, quasi_inverse
Source§

fn get_matrix(&self, matrix: MatrixSliceMut<'_>, degree: i32)

Write the matrix of the homomorphism at input degree degree to matrix. Read more
Source§

fn get_partial_matrix(&self, degree: i32, inputs: &[usize]) -> Matrix

Get the values of the homomorphism on the specified inputs to matrix.
Source§

fn apply_quasi_inverse( &self, result: FpSliceMut<'_>, degree: i32, input: FpSlice<'_>, ) -> bool

Attempt to apply quasi inverse to the input. Returns whether the operation was successful. This is required to either always succeed or always fail for each degree.

Auto Trait Implementations§

§

impl<M> !Freeze for HomPullback<M>

§

impl<M> RefUnwindSafe for HomPullback<M>

§

impl<M> Send for HomPullback<M>

§

impl<M> Sync for HomPullback<M>

§

impl<M> Unpin for HomPullback<M>

§

impl<M> !UnwindSafe for HomPullback<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.

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