camfort-0.802: CamFort - Cambridge Fortran infrastructure
Camfort.Helpers.Vec
data Nat Source #
Constructors
data Natural n where Source #
Instances
Methods
showsPrec :: Int -> Natural n -> ShowS #
show :: Natural n -> String #
showList :: [Natural n] -> ShowS #
data NatBox where Source #
showsPrec :: Int -> NatBox -> ShowS #
show :: NatBox -> String #
showList :: [NatBox] -> ShowS #
toNatBox :: Int -> NatBox Source #
class IsNatural n where Source #
Minimal complete definition
fromNat
fromNat :: Proxy n -> Int Source #
fromNat :: Proxy Nat Z -> Int Source #
fromNat :: Proxy Nat (S n) -> Int Source #
data Vec n a where Source #
fmap :: (a -> b) -> Vec n a -> Vec n b #
(<$) :: a -> Vec n b -> Vec n a #
(==) :: Vec n a -> Vec n a -> Bool #
(/=) :: Vec n a -> Vec n a -> Bool #
compare :: Vec n a -> Vec n a -> Ordering #
(<) :: Vec n a -> Vec n a -> Bool #
(<=) :: Vec n a -> Vec n a -> Bool #
(>) :: Vec n a -> Vec n a -> Bool #
(>=) :: Vec n a -> Vec n a -> Bool #
max :: Vec n a -> Vec n a -> Vec n a #
min :: Vec n a -> Vec n a -> Vec n a #
showsPrec :: Int -> Vec n a -> ShowS #
show :: Vec n a -> String #
showList :: [Vec n a] -> ShowS #
lengthV :: Vec n a -> Int Source #
vmap :: (a -> b) -> Vec n a -> Vec n b Source #
showV :: Show a => Vec n a -> String Source #
type family Max (n :: Nat) (m :: Nat) :: Nat where ... Source #
Equations
zipVec :: Vec m Int -> Vec n Int -> (Vec (Max n m) Int, Vec (Max n m) Int) Source #