Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell98 |
Framework for extracting subsize in unsafeCreateWithSizes
.
Synopsis
- newtype T sh nsize = Cons {}
- auto :: C nsize => T (ToShape nsize) nsize
- atom :: C sh => T sh Int
- data Sub nsize = Sub Int nsize
- sub :: T sh nsize -> T sh (Sub nsize)
- pair :: T sh0 nsize0 -> T sh1 nsize1 -> T (sh0, sh1) (nsize0, nsize1)
- triple :: T sh0 nsize0 -> T sh1 nsize1 -> T sh2 nsize2 -> T (sh0, sh1, sh2) (nsize0, nsize1, nsize2)
- append :: T sh0 nsize0 -> T sh1 nsize1 -> T (sh0 ::+ sh1) (nsize0 ::+ nsize1)
- class C nsize where
- type ToShape nsize
- newtype Atom sh = Atom Int
- evaluate :: C nsize => ToShape nsize -> (Int, nsize)
Documentation
triple :: T sh0 nsize0 -> T sh1 nsize1 -> T sh2 nsize2 -> T (sh0, sh1, sh2) (nsize0, nsize1, nsize2) Source #