FULE.Internal.Sparse
data Matrix a Source #
Defined in FULE.Internal.Sparse
Methods
fmap :: (a -> b) -> Matrix a -> Matrix b #
(<$) :: a -> Matrix b -> Matrix a #
showsPrec :: Int -> Matrix a -> ShowS #
show :: Matrix a -> String #
showList :: [Matrix a] -> ShowS #
rnf :: Matrix a -> () #
type Pos = (Int, Int) Source #
empty :: Matrix a 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 #
count :: Matrix a -> Int 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 #