pub struct AffineSum<S: Semiring>(pub Dual<Composition<S>>);Expand description
Range Affine Range Sum 用のモノイド作用
Tuple Fields§
§0: Dual<Composition<S>>Trait Implementations§
Source§impl<T, S, M> Act<M> for AffineSum<S>
impl<T, S, M> Act<M> for AffineSum<S>
Source§type Monoid = Dual<Composition<S>>
type Monoid = Dual<Composition<S>>
作用させるモノイド
Source§fn act(
&self,
m: &M,
val: M::Element,
a: Self::Element,
len: usize,
) -> M::Element
fn act( &self, m: &M, val: M::Element, a: Self::Element, len: usize, ) -> M::Element
$val$を
n個の値からなる列をモノイド$(\circ, e)$で畳み込んだ値であるとしたとき、
列の各値に$a$を作用させて畳み込んだ値を求める。 Read moreimpl<S: Copy + Semiring> Copy for AffineSum<S>
impl<S: Eq + Semiring> Eq for AffineSum<S>
impl<S: Semiring> StructuralPartialEq for AffineSum<S>
Auto Trait Implementations§
impl<S> Freeze for AffineSum<S>where
S: Freeze,
impl<S> RefUnwindSafe for AffineSum<S>where
S: RefUnwindSafe,
impl<S> Send for AffineSum<S>where
S: Send,
impl<S> Sync for AffineSum<S>where
S: Sync,
impl<S> Unpin for AffineSum<S>where
S: Unpin,
impl<S> UnwindSafe for AffineSum<S>where
S: UnwindSafe,
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