FULE-0.3.1: Functional UI Layout Engine
Safe HaskellSafe-Inferred
LanguageHaskell2010

FULE.Internal.Sparse

Documentation

data Matrix a Source #

Instances

Instances details
Functor Matrix Source # 
Instance details

Defined in FULE.Internal.Sparse

Methods

fmap :: (a -> b) -> Matrix a -> Matrix b #

(<$) :: a -> Matrix b -> Matrix a #

(Num a, Show a) => Show (Matrix a) Source # 
Instance details

Defined in FULE.Internal.Sparse

Methods

showsPrec :: Int -> Matrix a -> ShowS #

show :: Matrix a -> String #

showList :: [Matrix a] -> ShowS #

NFData a => NFData (Matrix a) Source # 
Instance details

Defined in FULE.Internal.Sparse

Methods

rnf :: Matrix a -> () #

type Pos = (Int, Int) Source #

eye :: Num a => Int -> Matrix a Source #

matrix :: (Int, Int) -> [(Pos, a)] -> Matrix a Source #

dims :: Matrix a -> (Int, Int) Source #

expandTo :: (Int, Int) -> Matrix a -> Matrix a Source #

get :: Num a => Pos -> Matrix a -> a Source #

set :: (Eq a, Num a) => Pos -> a -> Matrix a -> Matrix a Source #

del :: Pos -> Matrix a -> Matrix a Source #

add :: Num a => Matrix a -> Matrix a -> Matrix a Source #

sub :: Num a => Matrix a -> Matrix a -> Matrix a Source #

mul :: Num a => Matrix a -> Matrix a -> Matrix a Source #

star :: Num a => Matrix a -> Matrix a -> Matrix a Source #

filter :: (a -> Bool) -> Matrix a -> Matrix a Source #