Safe Haskell | Safe |
---|---|
Language | Haskell98 |
- data W l = Window {
- windowStart :: Index l
- windowSize :: Index l
- windowInner :: l
- class Bulk l a => Windowable l a where
- windowed :: Index l -> Index l -> Array l a -> Array (W l) a
- entire :: Bulk l a => Array l a -> Array (W l) a
- tail :: (Windowable l a, Index l ~ Int) => Array l a -> Maybe (Array l a)
- init :: (Windowable l a, Index l ~ Int) => Array l a -> Maybe (Array l a)
Documentation
Window | |
|
Eq (Name l) => Eq (Name (W l)) Source # | |
(Eq l, Eq (Index l)) => Eq (W l) Source # | |
Show (Name l) => Show (Name (W l)) Source # | |
(Show l, Show (Index l)) => Show (W l) Source # | |
Layout l => Layout (W l) Source # | Windowed arrays. |
Bulk l a => Bulk (W l) a Source # | Windowed arrays. |
Bulk l a => Windowable (W l) a Source # | Windows are windowable. |
data Name (W l) Source # | |
type Index (W l) Source # | |
data Array (W l) Source # | |
class Bulk l a => Windowable l a where Source #
Class of array representations that can be windowed directly.
The underlying representation can encode the window, without needing to add a wrapper to the existing layout.
Windowable B a Source # | Boxed windows. |
Storable a => Windowable F a Source # | Windowing Foreign arrays. |
Unbox a => Windowable U a Source # | Windowing Unboxed arrays. |
(BulkI l a, Windowable l a) => Windowable N (Array l a) Source # | Windowing Nested arrays. |
Bulk l a => Windowable (W l) a Source # | Windows are windowable. |
(Windowable l1 a, Windowable l2 b, (~) * (Index l1) (Index l2)) => Windowable (T2 l1 l2) (a, b) Source # | Tupled windows. |
windowed :: Index l -> Index l -> Array l a -> Array (W l) a Source #
Wrap a window around an exiting array.
entire :: Bulk l a => Array l a -> Array (W l) a Source #
Wrap a window around an existing array that encompases the entire array.