Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Domain-typed arrays
Synopsis
- class HasFin a where
- type HasFin' a = (KnownCard a, HasFin a)
- toFin :: HasFin a => a -> Finite (Card a)
- unFin :: HasFin a => Finite (Card a) -> a
- newtype Arr a b = Arr (VC a b)
- type Flat f = Arr (Rep f)
- flat :: HasFlat f => f <--> Flat f
- toFlat :: HasFlat f => f a -> Flat f a
- unFlat :: HasFlat f => Flat f a -> f a
- vecU1 :: Vector 0 <--> U1
- vecPar1 :: Vector 1 <--> Par1
- vecProd :: forall m n. KnownNat2 m n => Vector (m + n) <--> (Vector m :*: Vector n)
- vecComp :: forall m n. KnownNat2 m n => Vector (m * n) <--> (Vector m :.: Vector n)
- arrU1 :: Arr Void <--> U1
- arrPar1 :: Arr () <--> Par1
- arrProd :: forall a b. KnownCard2 a b => Arr (a :+ b) <--> (Arr a :*: Arr b)
- arrComp :: forall a b. KnownCard2 a b => Arr (a :* b) <--> (Arr a :.: Arr b)
- reverseF :: forall f a. (Representable f, HasFin' (Rep f)) => f a -> f a
- reverseFinite :: forall n. KnownNat n => Finite n -> Finite n
- reverseFinIso :: HasFin' a => a <-> a
Documentation
Arr (VC a b) |
Instances
HasFin' a => OkFunctor (:>) (Arr a) Source # | |
(OkCAR (Arr a b), IfCat (:>) (Rep (Arr a b))) => IfCat (:>) (Arr a b) Source # | |
HasFin' a => Representable (Arr a) Source # | |
(Decomposable a, Foldable (Decomp a)) => Foldable (Arr a) Source # | |
Defined in ConCat.TArr fold :: Monoid m => Arr a m -> m Source # foldMap :: Monoid m => (a0 -> m) -> Arr a a0 -> m Source # foldMap' :: Monoid m => (a0 -> m) -> Arr a a0 -> m Source # foldr :: (a0 -> b -> b) -> b -> Arr a a0 -> b Source # foldr' :: (a0 -> b -> b) -> b -> Arr a a0 -> b Source # foldl :: (b -> a0 -> b) -> b -> Arr a a0 -> b Source # foldl' :: (b -> a0 -> b) -> b -> Arr a a0 -> b Source # foldr1 :: (a0 -> a0 -> a0) -> Arr a a0 -> a0 Source # foldl1 :: (a0 -> a0 -> a0) -> Arr a a0 -> a0 Source # toList :: Arr a a0 -> [a0] Source # null :: Arr a a0 -> Bool Source # length :: Arr a a0 -> Int Source # elem :: Eq a0 => a0 -> Arr a a0 -> Bool Source # maximum :: Ord a0 => Arr a a0 -> a0 Source # minimum :: Ord a0 => Arr a a0 -> a0 Source # | |
KnownCard a => Applicative (Arr a) Source # | |
Functor (Arr a) Source # | |
HasFin' a => Distributive (Arr a) Source # | |
HasRep (Arr a b) Source # | |
OkCAR (Arr a b) => GenBuses (Arr a b) Source # | |
Newtype (Arr a b) Source # | |
type Rep (Arr a) Source # | |
Defined in ConCat.TArr | |
type Rep (Arr a b) Source # | |
Defined in ConCat.TArr | |
type O (Arr a b) Source # | |
Defined in ConCat.TArr |
reverseF :: forall f a. (Representable f, HasFin' (Rep f)) => f a -> f a Source #
Reverse the order of a representable functor.
reverseFinIso :: HasFin' a => a <-> a Source #