Safe Haskell | None |
---|---|
Language | Haskell98 |
List-like functions on the next-to-innermost dimension.
- length :: (Shape sh, Slice sh, Elt a) => Acc (Array ((sh :. Int) :. Int) a) -> Exp Int
- head :: (Shape sh, Slice sh, Elt a) => Acc (Array ((sh :. Int) :. Int) a) -> Acc (Array (sh :. Int) a)
- tail :: (Shape sh, Slice sh, Elt a) => Acc (Array ((sh :. Int) :. Int) a) -> Acc (Array ((sh :. Int) :. Int) a)
- cons :: (Shape sh, Slice sh, Elt a) => Acc (Array (sh :. Int) a) -> Acc (Array ((sh :. Int) :. Int) a) -> Acc (Array ((sh :. Int) :. Int) a)
- append :: (Shape sh, Slice sh, Elt a) => Acc (Array ((sh :. Int) :. Int) a) -> Acc (Array ((sh :. Int) :. Int) a) -> Acc (Array ((sh :. Int) :. Int) a)
- append3 :: (Shape sh, Slice sh, Elt a) => Acc (Array ((sh :. Int) :. Int) a) -> Acc (Array ((sh :. Int) :. Int) a) -> Acc (Array ((sh :. Int) :. Int) a) -> Acc (Array ((sh :. Int) :. Int) a)
- stack3 :: (Shape sh, Slice sh, Elt a) => Acc (Array ((sh :. Int) :. Int) a) -> Acc (Array ((sh :. Int) :. Int) a) -> Acc (Array ((sh :. Int) :. Int) a) -> Acc (Array (((sh :. Int) :. Int) :. Int) a)
- take :: (Shape sh, Slice sh, Elt a) => Exp Int -> Acc (Array ((sh :. Int) :. Int) a) -> Acc (Array ((sh :. Int) :. Int) a)
- drop :: (Shape sh, Slice sh, Elt a) => Exp Int -> Acc (Array ((sh :. Int) :. Int) a) -> Acc (Array ((sh :. Int) :. Int) a)
- sieve :: (Shape sh, Slice sh, Elt a) => Exp Int -> Exp Int -> Acc (Array ((sh :. Int) :. Int) a) -> Acc (Array ((sh :. Int) :. Int) a)
Documentation
head :: (Shape sh, Slice sh, Elt a) => Acc (Array ((sh :. Int) :. Int) a) -> Acc (Array (sh :. Int) a) Source #
tail :: (Shape sh, Slice sh, Elt a) => Acc (Array ((sh :. Int) :. Int) a) -> Acc (Array ((sh :. Int) :. Int) a) Source #
cons :: (Shape sh, Slice sh, Elt a) => Acc (Array (sh :. Int) a) -> Acc (Array ((sh :. Int) :. Int) a) -> Acc (Array ((sh :. Int) :. Int) a) Source #
append :: (Shape sh, Slice sh, Elt a) => Acc (Array ((sh :. Int) :. Int) a) -> Acc (Array ((sh :. Int) :. Int) a) -> Acc (Array ((sh :. Int) :. Int) a) Source #
The outer and innermost dimensions must match. Otherwise you may or may not get out-of-bound errors.
append3 :: (Shape sh, Slice sh, Elt a) => Acc (Array ((sh :. Int) :. Int) a) -> Acc (Array ((sh :. Int) :. Int) a) -> Acc (Array ((sh :. Int) :. Int) a) -> Acc (Array ((sh :. Int) :. Int) a) Source #
stack3 :: (Shape sh, Slice sh, Elt a) => Acc (Array ((sh :. Int) :. Int) a) -> Acc (Array ((sh :. Int) :. Int) a) -> Acc (Array ((sh :. Int) :. Int) a) -> Acc (Array (((sh :. Int) :. Int) :. Int) a) Source #
take :: (Shape sh, Slice sh, Elt a) => Exp Int -> Acc (Array ((sh :. Int) :. Int) a) -> Acc (Array ((sh :. Int) :. Int) a) Source #