Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Right semigroup action, specialized for the lazily propagated segment tree.
Algebra
\(s_2 * (s_1 * a) == (s_2 \diamond s_1) * a\)
Synopsis
- class SegmentAction op a where
- segAct :: op -> a -> a
- segActWithLength :: Int -> op -> a -> a
Documentation
class SegmentAction op a where #
Right semigroup action, specialized for the lazily propagated segment tree.
Nothing
Right semigroup aciton, limited to the lazily propagated segment tree.
segActWithLength :: Int -> op -> a -> a #
Right semigroup aciton with the segment length.
Instances
Semigroup a => SegmentAction a a # | Target self |
Defined in Data.Core.SegmentAction segActWithLength :: Int -> a -> a -> a # | |
Integral a => SegmentAction (Affine2d a) a # | |
Defined in Data.Instances.Affine2d | |
Integral a => SegmentAction (Affine2d a) (Product a) # | |
Integral a => SegmentAction (Affine2d a) (Sum a) # | |
Num a => SegmentAction (Affine2d a) (V2 a) # | |
(Num a, Ord a, Bounded a) => SegmentAction (AddChminChmax a) (SumMinMax a) # | |
Defined in Data.SegmentTree.Beats.SumMinMax segAct :: AddChminChmax a -> SumMinMax a -> SumMinMax a # segActWithLength :: Int -> AddChminChmax a -> SumMinMax a -> SumMinMax a # |